Skip to content

Commit

Permalink
chore(ci): Update docker build action
Browse files Browse the repository at this point in the history
v1 seems to be deprecated, so use the v2 action.
Since this action also clones the repository during docker build, we
should not need the `checkout` action anymore.
  • Loading branch information
prsdta committed Feb 2, 2022
1 parent 8b9f0c3 commit 19baa9e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build and push docker image
uses: docker/build-push-action@v1
- name: Docker Login
uses: docker/[email protected]
with:
registry: quay.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: wantedly/deployment-duplicator

- name: Build and push docker image
uses: docker/build-push-action@v1
with:
registry: quay.io
tags: ${{ github.sha }}
tag_with_ref: true
tag_with_sha: true
tags: quay.io/wantedly/deployment-duplicator:${{ github.sha }}${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && ',quay.io/wantedly/deployment-duplicator:latest' || '' }}

0 comments on commit 19baa9e

Please sign in to comment.