File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 4040repository=ghcr.io/kcp-dev/kcp
4141architectures=" amd64 arm64"
4242
43- # when building locally, just tag with the current HEAD hash
43+ # when building locally, just tag with the current HEAD hash.
4444version=" $( git rev-parse --short HEAD) "
4545branchName=" "
4646
@@ -60,14 +60,19 @@ if [ -n "${PULL_BASE_REF:-}" ]; then
6060 fi
6161fi
6262
63+ # Prefix with "dev-" if not on a tag or branch
64+ if [ -z " $branchName " ]; then
65+ version=" dev-$version "
66+ fi
67+
6368image=" $repository :$version "
6469echo " Building container image $image ..."
6570
6671# build image for all architectures
6772for arch in $architectures ; do
6873 fullTag=" $image -$arch "
6974
70- echo " Building $version - $arch ..."
75+ echo " Building $fullTag ..."
7176 buildah build-using-dockerfile \
7277 --file Dockerfile \
7378 --tag " $fullTag " \
You can’t perform that action at this time.
0 commit comments