ci: staged changes
このコミットが含まれているのは:
コミット
60e340b8be
|
@ -11,12 +11,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Log into GitHub Container Registry
|
||||
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
- name: Get the package.json version
|
||||
id: package-version
|
||||
run: echo ::set-output name=version::$(jq -r .version package.json)
|
||||
- name: Build the Docker image
|
||||
run: |
|
||||
docker build . -t ghcr.io/sinkaroid/jandapress:${{ steps.tags.outputs.name }}
|
||||
run: docker build . --file Dockerfile --tag ghcr.io/sinkaroid/jandapress:${{ steps.package-version.outputs.version }}
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Push the Docker image
|
||||
run: |
|
||||
docker push ghcr.io/sinkaroid/jandapress:${{ steps.tags.outputs.name }}
|
||||
run: docker push ghcr.io/sinkaroid/jandapress:${{ steps.package-version.outputs.version }}
|
||||
|
||||
|
||||
|
|
読み込み中…
新しいイシューから参照