Skip to content

Commit 909e399

Browse files
author
Alec Thomson
committed
Fix tags
1 parent b9e518c commit 909e399

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
id: tag_suffix
3131
run: |
3232
if [[ "${{ github.event_name }}" == "release" ]]; then
33-
echo "TAG_SUFFIX=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
33+
echo "TAG_SUFFIX=${{ github.event.release.tag_name }}-${{ matrix.name }}" >> $GITHUB_ENV
3434
else
3535
SHORT_HASH=$(git rev-parse --short HEAD)
3636
LATEST_RELEASE=$(git describe --tags --abbrev=0 || echo "latest")
37-
echo "TAG_SUFFIX=${LATEST_RELEASE}-${SHORT_HASH}" >> $GITHUB_ENV
37+
echo "TAG_SUFFIX=${LATEST_RELEASE}-${{ matrix.name }}"" >> $GITHUB_ENV
3838
fi
3939
4040
- name: Log in to the Container registry
@@ -49,7 +49,7 @@ jobs:
4949
uses: docker/metadata-action@v5
5050
with:
5151
images: |
52-
${{ env.REGISTRY }}/${{ env.REPO }}/${{ matrix.name }}
52+
${{ env.REGISTRY }}/${{ env.REPO }}
5353
tags: |
5454
type=raw,value=${{ env.TAG_SUFFIX }}
5555
@@ -62,7 +62,7 @@ jobs:
6262
context: .
6363
file: Dockerfile-${{ matrix.name }} # Builds the correct Dockerfile
6464
push: true
65-
tags: ${{ env.REGISTRY }}/${{ env.REPO }}/${{ matrix.name }}:${{ env.TAG_SUFFIX }} # Explicitly set tag
65+
tags: ${{ env.REGISTRY }}/${{ env.REPO }}:${{ env.TAG_SUFFIX }} # Explicitly set tag
6666
labels: ${{ steps.meta.outputs.labels }}
6767
cache-from: type=gha
6868
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)