ci: build a multi-arch image on each commit to main (#11544)

This commit is contained in:
Muhammad Atif Ali
2024-01-18 10:57:35 +00:00
committed by GitHub
parent 8910ac715c
commit 1ea70ba573
2 changed files with 49 additions and 19 deletions
+7 -1
View File
@@ -50,10 +50,16 @@ if [[ "$version" == "" ]]; then
fi
image="${CODER_IMAGE_BASE:-ghcr.io/coder/coder}"
tag="v$version"
# use CODER_IMAGE_TAG_PREFIX if set as a prefix for the tag
tag_prefix="${CODER_IMAGE_TAG_PREFIX:-}"
tag="${tag_prefix:+$tag_prefix-}v$version"
if [[ "$version" == "latest" ]]; then
tag="latest"
fi
if [[ "$arch" != "" ]]; then
tag+="-$arch"
fi