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 e11ab09 commit 81ed51eCopy full SHA for 81ed51e
hack/build-image.sh
@@ -40,8 +40,8 @@ fi
40
repository=ghcr.io/kcp-dev/kcp
41
architectures="amd64 arm64"
42
43
-# when building locally, just tag with the current HEAD hash with a "dev-" prefix for GC.
44
-version="dev-$(git rev-parse --short HEAD)"
+# when building locally, just tag with the current HEAD hash.
+version="$(git rev-parse --short HEAD)"
45
branchName=""
46
47
# deduce the tag from the Prow job metadata
@@ -60,6 +60,11 @@ if [ -n "${PULL_BASE_REF:-}" ]; then
60
fi
61
62
63
+# Prefix with "dev-" if not on a tag or branch
64
+if [ -z "$branchName" ]; then
65
+ version="dev-$version"
66
+fi
67
+
68
image="$repository:$version"
69
echo "Building container image $image ..."
70
0 commit comments