Skip to content

Commit 2b78cd4

Browse files
authored
Add docker/metadata-action for OCI labels (#108)
1 parent 6d523bf commit 2b78cd4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ jobs:
1919
registry: ghcr.io
2020
username: ${{github.actor}}
2121
password: ${{secrets.GITHUB_TOKEN}}
22+
- uses: docker/metadata-action@v5.10.0
23+
id: meta
24+
with:
25+
images: ghcr.io/cego/swarm-app
26+
tags: type=semver,pattern={{version}}
2227
- uses: docker/build-push-action@v6
2328
with:
2429
platforms: linux/amd64,linux/arm64
2530
push: true
26-
tags: ghcr.io/cego/swarm-app:${{ github.ref_name }}
31+
tags: ${{ steps.meta.outputs.tags }}
32+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)