Skip to content

Commit

Permalink
fixup! Script for multi-arch parallel image build + push
Browse files Browse the repository at this point in the history
  • Loading branch information
cevich committed Aug 25, 2021
1 parent b78e371 commit 9064a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-push/bin/build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ parse_args() {
BUILTIID="" # populated with the image-id on successful build
parallel_build() {
local arch
local platforms
local platforms=""
local build="bud"
local output
local _fqin
Expand All @@ -268,7 +268,7 @@ parallel_build() {


for arch in "${ARCHES[@]}"; do
platforms="${platforms:+$platforms }--platform=$PLATFORMOS/$arch"
platforms="${platforms:+$platforms,}$PLATFORMOS/$arch"
done

# Keep user-specified BUILD_ARGS near the beginning so errors are easy to spot
Expand All @@ -277,7 +277,7 @@ parallel_build() {
"${BUILD_ARGS[@]}" \
--layers --force-rm \
--jobs="$PARALLEL_JOBS" \
$platforms \
--platform=$platforms \
--manifest="$_fqin" \
"$CONTEXT" |& tee /dev/stderr)
BUILDIID=$(tail -1 <<<"$output")
Expand Down

0 comments on commit 9064a33

Please sign in to comment.