We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10bbf51 commit 0fd8743Copy full SHA for 0fd8743
domino-build.sh
@@ -29,7 +29,7 @@ SOURCE_IMAGE_TAG="$(<version.txt)"
29
TARGET_GIT_REV_TAG="${SOURCE_IMAGE_TAG}-$(git rev-parse --short HEAD)"
30
TARGET_IMAGE_TAGS=("${TARGET_GIT_REV_TAG}")
31
32
-BRANCH_NAME="$(git symbolic-ref --short --quiet HEAD)"
+BRANCH_NAME="$(git symbolic-ref --short --quiet HEAD || echo "")"
33
if [ -n "${BRANCH_NAME}" ]; then
34
TARGET_IMAGE_TAGS+=("${SOURCE_IMAGE_TAG}-${BRANCH_NAME}.latest")
35
fi
0 commit comments