Skip to content

Commit 93068fa

Browse files
committed
Simply actions
1 parent 32665c7 commit 93068fa

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
run: |
2525
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/surtr
2626
27-
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v3
29-
3027
- name: Log in to Quay.io
3128
uses: docker/login-action@v3
3229
with:
@@ -40,18 +37,14 @@ jobs:
4037
with:
4138
images: quay.io/uswitch/surtr
4239
tags: |
43-
# For branch pushes: tag with SHA and branch name
44-
type=sha,prefix=
45-
type=ref,event=branch
46-
# For tags: tag with the git tag
47-
type=ref,event=tag
48-
# For master branch: also tag as latest
49-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
50-
51-
- name: Build and push Docker image
52-
uses: docker/build-push-action@v5
40+
type=semver,pattern={{raw}}
41+
type=sha,prefix=,format=long
42+
43+
- name: Push to Quay.io
44+
id: docker-push
45+
uses: docker/build-push-action@v6
5346
with:
5447
context: .
55-
push: true
56-
tags: ${{ steps.meta.outputs.tags }}
5748
labels: ${{ steps.meta.outputs.labels }}
49+
push: true
50+
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)