Update .forgejo/workflows/build-images.yaml

This commit is contained in:
Tommy 2025-01-03 23:03:14 +00:00
parent 3db0b09feb
commit fed809c507
Signed by: Mooo[bot]
GPG key ID: CF3AFE4D5B62BB9A

View file

@ -49,7 +49,7 @@ jobs:
name: Read version from version.sh
shell: bash
run: |
version=$(bash "${{ steps.set-context.outputs.context_dir }}/ci/version.sh" || echo "")
version=$(bash "${{ steps.set-context.outputs.context_dir }}/ci/version.sh" || echo "" | sed 's/[^a-zA-Z0-9._-]//g')
echo "Discovered version: $version"
echo version=$version >> $GITHUB_OUTPUT
@ -66,8 +66,7 @@ jobs:
context: ${{ steps.set-context.outputs.context_dir }}
# Build & push two tags: :<channel> and :<version>
destinations: >
code.252.no/${{ github.repository }}/${{ github.event.inputs.app }}:${{ steps.parse-channel-platform.outputs.channel }} code.252.no/${{ github.repository }}/${{ github.event.inputs.app }}:${{ steps.read-version.outputs.version }}
destinations: code.252.no/${{ github.repository }}/${{ github.event.inputs.app }}:${{ steps.parse-channel-platform.outputs.channel }} code.252.no/${{ github.repository }}/${{ github.event.inputs.app }}:${{ steps.read-version.outputs.version }}
# Pass any build arguments the Dockerfile expects
build_args: |