infra: image: fixes image_tag
This commit is contained in:
@@ -26,7 +26,8 @@ jobs:
|
|||||||
|
|
||||||
echo "branch_name=$branch_name" >> $GITEA_OUTPUT
|
echo "branch_name=$branch_name" >> $GITEA_OUTPUT
|
||||||
# slugify
|
# 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
|
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then
|
||||||
build_image=true
|
build_image=true
|
||||||
@@ -59,6 +60,8 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: git.epenguin.net/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
|
tags: git.epenguin.net/${{ gitea.repository }}:${{ steps.image-changes.outputs.image_tag }}
|
||||||
context: "{{defaultContext}}:.docker"
|
context: "{{defaultContext}}:.docker"
|
||||||
|
outputs:
|
||||||
|
image_tag: ${{ steps.image-changes.outputs.image_tag }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: brutalisk
|
runs-on: brutalisk
|
||||||
|
|||||||
Reference in New Issue
Block a user