Fixed release step which had wrong image building

This commit is contained in:
Matthieu Vachon 2025-04-30 15:19:36 -04:00
parent 9ba90dc86b
commit f70862f7e4

View file

@ -151,7 +151,12 @@ jobs:
- name: Extract image - name: Extract image
id: image id: image
run: | run: |
echo "ID=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" version="edge"
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
version=${GITHUB_REF#refs/tags/}
fi
echo "ID=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}-${version}" >> "$GITHUB_OUTPUT"
- name: Extract assets - name: Extract assets
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')