fix(ci): sanitize platform in image tag (linux/amd64 -> linux-amd64)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user