Skip to content

Commit

Permalink
Allow domino-build.sh script to succeed if building a 'detached HEAD'…
Browse files Browse the repository at this point in the history
… git commit (#43)
  • Loading branch information
dmcwhorter-ddl authored Nov 1, 2023
1 parent 10bbf51 commit 0fd8743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domino-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SOURCE_IMAGE_TAG="$(<version.txt)"
TARGET_GIT_REV_TAG="${SOURCE_IMAGE_TAG}-$(git rev-parse --short HEAD)"
TARGET_IMAGE_TAGS=("${TARGET_GIT_REV_TAG}")

BRANCH_NAME="$(git symbolic-ref --short --quiet HEAD)"
BRANCH_NAME="$(git symbolic-ref --short --quiet HEAD || echo "")"
if [ -n "${BRANCH_NAME}" ]; then
TARGET_IMAGE_TAGS+=("${SOURCE_IMAGE_TAG}-${BRANCH_NAME}.latest")
fi
Expand Down

0 comments on commit 0fd8743

Please sign in to comment.