File tree 2 files changed +19
-2
lines changed 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,11 @@ jobs:
497
497
else
498
498
echo "created_latest_tag=false" >> $GITHUB_OUTPUT
499
499
fi
500
+ # push image based on current channel
501
+ ./scripts/build_docker_multiarch.sh \
502
+ --push \
503
+ --target "$(./scripts/image_tag.sh --channel ${CODER_RELEASE_CHANNEL})" \
504
+ $(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
500
505
env :
501
506
CODER_BASE_IMAGE_TAG : ${{ steps.image-base-tag.outputs.tag }}
502
507
Original file line number Diff line number Diff line change 11
11
# If no version is specified, defaults to the version from ./version.sh. If the
12
12
# supplied version is "latest", no `v` prefix will be added to the tag.
13
13
#
14
+ # The --channel parameter indecates the specific release channel, it's conflicts
15
+ # with --version parameter.
16
+ #
14
17
# The returned tag will be sanitized to remove invalid characters like the plus
15
18
# sign.
16
19
@@ -20,8 +23,9 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
20
23
21
24
arch=" "
22
25
version=" "
26
+ channel=" "
23
27
24
- args=" $( getopt -o " " -l arch:,version: -- " $@ " ) "
28
+ args=" $( getopt -o " " -l arch:,version:,channel: -- " $@ " ) "
25
29
eval set -- " $args "
26
30
while true ; do
27
31
case " $1 " in
@@ -33,6 +37,10 @@ while true; do
33
37
version=" $2 "
34
38
shift 2
35
39
;;
40
+ --channel)
41
+ channel=" $2 "
42
+ shift 2
43
+ ;;
36
44
--)
37
45
shift
38
46
break
45
53
46
54
# Remove the "v" prefix because we don't want to add it twice.
47
55
version=" ${version# v} "
48
- if [[ " $version " == " " ]]; then
56
+ if [[ " $version " == " " ]] && [[ " $channel " == " " ]] ; then
49
57
version=" $( execrelative ./version.sh) "
50
58
fi
51
59
@@ -60,6 +68,10 @@ if [[ "$version" == "latest" ]]; then
60
68
tag=" latest"
61
69
fi
62
70
71
+ if [[ " $channel " != " " ]]; then
72
+ tag=" $channel "
73
+ fi
74
+
63
75
if [[ " $arch " != " " ]]; then
64
76
tag+=" -$arch "
65
77
fi
You can’t perform that action at this time.
0 commit comments