File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -705,6 +705,7 @@ jobs:
705
705
id : build-docker
706
706
env :
707
707
CODER_IMAGE_BASE : ghcr.io/coder/coder-preview
708
+ CODER_IMAGE_TAG_PREFIX : main
708
709
DOCKER_CLI_EXPERIMENTAL : " enabled"
709
710
run : |
710
711
set -euxo pipefail
@@ -730,6 +731,13 @@ jobs:
730
731
--version $version \
731
732
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
732
733
734
+ # Create and push a multi-arch manifest for the main tag
735
+ ./scripts/build_docker_multiarch.sh \
736
+ --push \
737
+ --target "ghcr.io/coder/coder-preview:main" \
738
+ --version $version \
739
+ $(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
740
+
733
741
# Create and push a multi-arch manifest for the latest tag
734
742
./scripts/build_docker_multiarch.sh \
735
743
--push \
Original file line number Diff line number Diff line change @@ -50,10 +50,16 @@ if [[ "$version" == "" ]]; then
50
50
fi
51
51
52
52
image=" ${CODER_IMAGE_BASE:- ghcr.io/ coder/ coder} "
53
- tag=" v$version "
53
+
54
+ # use CODER_IMAGE_TAG_PREFIX if set as a prefix for the tag
55
+ tag_prefix=" ${CODER_IMAGE_TAG_PREFIX:- } "
56
+
57
+ tag=" ${tag_prefix: +$tag_prefix -} v$version "
58
+
54
59
if [[ " $version " == " latest" ]]; then
55
60
tag=" latest"
56
61
fi
62
+
57
63
if [[ " $arch " != " " ]]; then
58
64
tag+=" -$arch "
59
65
fi
You can’t perform that action at this time.
0 commit comments