@@ -86,16 +86,13 @@ jobs:
86
86
set -euxo pipefail
87
87
88
88
# build and (maybe) push Docker images for each architecture
89
- images=()
90
- for arch in amd64 armv7 arm64; do
91
- img="$(
92
- ./scripts/build_docker.sh \
93
- ${{ (!github.event.inputs.dry_run && !github.event.inputs.snapshot) && '--push' || '' }} \
94
- --arch "$arch" \
95
- ./build/coder_*_linux_"$arch"
96
- )"
97
- images+=("$img")
98
- done
89
+ version="$(./script/version.sh)"
90
+ push=""
91
+ if [[ "$CODER_RELEASE" == *t* ]]; then
92
+ push="push/"
93
+ fi
94
+ make -j \
95
+ "$push"build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
99
96
100
97
# we can't build multi-arch if the images aren't pushed, so quit now
101
98
# if dry-running
@@ -105,14 +102,13 @@ jobs:
105
102
fi
106
103
107
104
# build and push multi-arch manifest
108
- ./scripts/build_docker_multiarch.sh \
109
- --push \
110
- "${images[@]}"
105
+ make -j push/build/coder_"$version"_linux.tag
111
106
112
107
# if the current version is equal to the highest (according to semver)
113
108
# version in the repo, also create a multi-arch image as ":latest" and
114
109
# push it
115
110
if [[ "$(git tag | grep '^v' | grep -vE '(rc|dev|-|\+|\/)' | sort -r --version-sort | head -n1)" == "v$(./scripts/version.sh)" ]]; then
111
+ make -j push/build/coder_"$version"_linux.tag
116
112
./scripts/build_docker_multiarch.sh \
117
113
--push \
118
114
--target "$(./scripts/image_tag.sh --version latest)" \
@@ -252,7 +248,10 @@ jobs:
252
248
- name : Publish Helm
253
249
run : |
254
250
set -euxo pipefail
255
- ./scripts/helm.sh --push
251
+
252
+ version="$(./script/version.sh)"
253
+ make -j \
254
+ build/coder_helm_"$version".tgz
256
255
mv ./build/*.tgz ./artifacts/
257
256
258
257
- name : Publish Release
0 commit comments