infra: image: fixes c35db0f
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user