Skip to content

Commit

Permalink
fix(ci): use buildx imagetools
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae committed Feb 3, 2025
1 parent 09dce1f commit 72f5a1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ define multiarch_build
GOOS=linux GOARCH=arm64 IMAGE_TAG="$(IMAGE_TAG)-arm64" $(MAKE) $(build_cmd) IMAGE_PLATFORM=linux/arm64
GOOS=linux GOARCH=amd64 IMAGE_TAG="$(IMAGE_TAG)-amd64" $(MAKE) $(build_cmd) IMAGE_PLATFORM=linux/amd64

$(if $(push_image), \
docker manifest create --amend "$(image_name)" "$(image_name)-amd64" "$(image_name)-arm64" && \
docker manifest push "$(image_name)")
$(if $(push_image), docker buildx imagetools create --tag "$(image_name)" "$(image_name)-amd64" "$(image_name)-arm64")
endef

.PHONY: docker-image/pyroscope/build-multiarch
Expand Down

0 comments on commit 72f5a1e

Please sign in to comment.