Skip to content

Commit 19baa9e

Browse files
committed
chore(ci): Update docker build action
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.
1 parent 8b9f0c3 commit 19baa9e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/main.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
11-
- name: Build and push docker image
12-
uses: docker/build-push-action@v1
9+
- name: Docker Login
10+
uses: docker/[email protected]
1311
with:
12+
registry: quay.io
1413
username: ${{ secrets.DOCKER_USERNAME }}
1514
password: ${{ secrets.DOCKER_PASSWORD }}
16-
repository: wantedly/deployment-duplicator
15+
16+
- name: Build and push docker image
17+
uses: docker/build-push-action@v1
18+
with:
1719
registry: quay.io
18-
tags: ${{ github.sha }}
19-
tag_with_ref: true
20-
tag_with_sha: true
20+
tags: quay.io/wantedly/deployment-duplicator:${{ github.sha }}${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && ',quay.io/wantedly/deployment-duplicator:latest' || '' }}

0 commit comments

Comments
 (0)