infra: image: fixes c35db0f

This commit is contained in:
2025-12-08 19:49:40 -06:00
parent b7c76b198b
commit 1d4e022512

View File

@@ -15,12 +15,13 @@ jobs:
- name: Check for changes before building
id: image-changes
run: |
echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT
branch_name="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
echo "branch_name=$branch_name" >> $GITEA_OUTPUT
if [[ "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" == "${{ gitea.event.repository.default_branch }}" ]]; then
echo "image_tag=latest"
if [[ "$branch_name" == "${{ gitea.event.repository.default_branch }}" ]]; then
echo "image_tag=latest" >> $GITEA_OUTPUT
else
echo "image_tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
echo "image_tag=$branch_name" >> $GITEA_OUTPUT
fi
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then