Skip to content

Commit 0808f1a

Browse files
Update checkout action to v4, add semver git tags to Docker image tags
1 parent 022a10b commit 0808f1a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build-docker.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ jobs:
1010
packages: write
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
14-
- id: short-sha
15-
uses: benjlevesque/[email protected]
13+
uses: actions/checkout@v4
1614
- name: Docker meta
1715
id: meta
1816
uses: docker/metadata-action@v4
1917
with:
2018
images: |
2119
ghcr.io/netbymatt/ws4kp
20+
flavor: |
21+
latest=false
2222
tags: |
2323
type=raw,priority=1000,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
2424
type=ref,event=branch
25-
${{ steps.short-sha.outputs.sha }}
25+
type=semver,pattern={{version}}
26+
type=semver,pattern={{major}}.{{minor}}
27+
type=semver,pattern={{major}}
28+
type=sha
2629
- name: Set up QEMU
2730
uses: docker/setup-qemu-action@v2
2831
- name: Set up Buildx
@@ -44,4 +47,4 @@ jobs:
4447
tags: ${{ steps.meta.outputs.tags }}
4548
labels: ${{ steps.meta.outputs.labels }}
4649
cache-from: type=gha
47-
cache-to: type=gha,mode=max
50+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)