Skip to content

Commit

Permalink
Trying another build change
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrdrew committed Nov 7, 2023
1 parent f27a746 commit e4182d0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ if [[ "$VALID_TAGS_LENGTH" -eq 0 ]]; then
fi
#### End

docker buildx ls
docker buildx inspect --bootstrap

docker buildx use multiarchbuilder
docker --config="$DOCKER_CONF" buildx build --platform linux/amd64,linux/arm64 --build-arg BASE_IMAGE="$BASE_IMG" -t "${IMAGE}:${IMAGE_TAG}" --push .


docker --config="$DOCKER_CONF" buildx build --platform linux/amd64 --build-arg BASE_IMAGE="$BASE_IMG" --build-arg GOARCH="amd64" -t "${IMAGE}:${IMAGE_TAG}-amd64" .
docker --config="$DOCKER_CONF" buildx build --platform linux/arm64 --build-arg BASE_IMAGE="$BASE_IMG" --build-arg GOARCH="arm64" -t "${IMAGE}:${IMAGE_TAG}-arm64" .

docker --config="$DOCKER_CONF" manifest create "${IMAGE}:${IMAGE_TAG}" \
"${IMAGE}:${IMAGE_TAG}-amd64" \
"${IMAGE}:${IMAGE_TAG}-arm64"

docker --config="$DOCKER_CONF" manifest push "${IMAGE}:${IMAGE_TAG}"

0 comments on commit e4182d0

Please sign in to comment.