fix(ci): sanitize platform in image tag (linux/amd64 -> linux-amd64)

This commit is contained in:
hermes
2026-09-17 19:06:07 +00:00
parent 932be82ae6
commit b2e85b686c
+5 -2
View File
@@ -44,12 +44,15 @@ jobs:
- name: resolve version
id: version
env:
PLATFORM: ${{ matrix.platform }}
run: |
if [ -n "${{ github.event.inputs.tag }}" ]; then
echo "VERSION=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
else
echo "VERSION=${GITHUB_REF_NAME#refs/tags/}" >> "$GITHUB_OUTPUT"
fi
echo "PLATFORM_SAFE=${PLATFORM//\//-}" >> "$GITHUB_OUTPUT"
- name: build and push
uses: docker/build-push-action@v6
@@ -59,5 +62,5 @@ jobs:
platforms: ${{ matrix.platform }}
push: true
tags: |
gitea.rudolf.keenetic.link/hermes/connectivity_tester:${{ steps.version.outputs.VERSION }}-${{ matrix.platform }}
gitea.rudolf.keenetic.link/hermes/connectivity_tester:latest-${{ matrix.platform }}
gitea.rudolf.keenetic.link/hermes/connectivity_tester:${{ steps.version.outputs.VERSION }}-${{ env.PLATFORM_SAFE }}
gitea.rudolf.keenetic.link/hermes/connectivity_tester:latest-${{ env.PLATFORM_SAFE }}