Skip to content

Commit b16c131

Browse files
committed
Workflow tagging
1 parent 6c89f4a commit b16c131

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build-publish.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
release:
55
types:
66
- published
7+
- edited
78

89
env:
910
REGISTRY: ghcr.io
@@ -20,6 +21,15 @@ jobs:
2021
steps:
2122
- name: Checkout repository
2223
uses: actions/checkout@v4
24+
with:
25+
submodules: recursive
26+
fetch-dpth: 0
27+
fetch-tags: true
28+
- name: Compute SemVer from Tags and Commits
29+
id: version
30+
run: |
31+
echo "VERSION=$(${PWD}/.version/calculate-version.sh | sed -e 's/+/--/')"
32+
echo "VERSION=$(${PWD}/.version/calculate-version.sh | sed -e 's/+/--/')" >> $GITHUB_OUTPUT
2333
- name: Log in to the Container registry
2434
uses: docker/login-action@v3
2535
with:
@@ -37,7 +47,7 @@ jobs:
3747
with:
3848
context: .
3949
push: true
40-
tags: ${{ steps.meta.outputs.tags }}
50+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }}
4151
labels: ${{ steps.meta.outputs.labels }}
4252

4353
- name: Generate artifact attestation

0 commit comments

Comments
 (0)