infra: image: fixes image_tag

This commit is contained in:
2025-12-08 20:26:23 -06:00
parent 722536bbb6
commit ecc2058e13

View File

@@ -26,7 +26,8 @@ jobs:
echo "branch_name=$branch_name" >> $GITEA_OUTPUT
# slugify
echo "image_tag=$(echo "$image_tag" | sed -E 's/[^a-zA-Z0-9]/-/g')" >> $GITEA_OUTPUT
image_tag="$(echo "$image_tag" | sed -E 's/[^a-zA-Z0-9]/-/g')"
echo "image_tag=$image_tag" >> $GITEA_OUTPUT
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then
build_image=true
@@ -59,6 +60,8 @@ jobs:
push: true
tags: git.epenguin.net/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
context: "{{defaultContext}}:.docker"
outputs:
image_tag: ${{ steps.image-changes.outputs.image_tag }}
build:
runs-on: brutalisk