Skip to content

Commit f866e1f

Browse files
committed
fixup! chore: buff makefile pt. 5 helm stuff
1 parent 7a0f045 commit f866e1f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,13 @@ jobs:
8686
set -euxo pipefail
8787
8888
# 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
9996
10097
# we can't build multi-arch if the images aren't pushed, so quit now
10198
# if dry-running
@@ -105,14 +102,13 @@ jobs:
105102
fi
106103
107104
# 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
111106
112107
# if the current version is equal to the highest (according to semver)
113108
# version in the repo, also create a multi-arch image as ":latest" and
114109
# push it
115110
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
116112
./scripts/build_docker_multiarch.sh \
117113
--push \
118114
--target "$(./scripts/image_tag.sh --version latest)" \
@@ -252,7 +248,10 @@ jobs:
252248
- name: Publish Helm
253249
run: |
254250
set -euxo pipefail
255-
./scripts/helm.sh --push
251+
252+
version="$(./script/version.sh)"
253+
make -j \
254+
build/coder_helm_"$version".tgz
256255
mv ./build/*.tgz ./artifacts/
257256
258257
- name: Publish Release

0 commit comments

Comments
 (0)