Skip to content

Commit e11ab09

Browse files
committed
add prefix to dev images for gc
1 parent 1afb207 commit e11ab09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/build-image.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ fi
4040
repository=ghcr.io/kcp-dev/kcp
4141
architectures="amd64 arm64"
4242

43-
# when building locally, just tag with the current HEAD hash
44-
version="$(git rev-parse --short HEAD)"
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)"
4545
branchName=""
4646

4747
# deduce the tag from the Prow job metadata
@@ -67,7 +67,7 @@ echo "Building container image $image ..."
6767
for arch in $architectures; do
6868
fullTag="$image-$arch"
6969

70-
echo "Building $version-$arch ..."
70+
echo "Building $fullTag ..."
7171
buildah build-using-dockerfile \
7272
--file Dockerfile \
7373
--tag "$fullTag" \

0 commit comments

Comments
 (0)