Skip to content

Commit 96ba895

Browse files
authored
fix(ci): use buildx imagetools (#3884)
1 parent 09dce1f commit 96ba895

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,7 @@ define multiarch_build
235235
GOOS=linux GOARCH=arm64 IMAGE_TAG="$(IMAGE_TAG)-arm64" $(MAKE) $(build_cmd) IMAGE_PLATFORM=linux/arm64
236236
GOOS=linux GOARCH=amd64 IMAGE_TAG="$(IMAGE_TAG)-amd64" $(MAKE) $(build_cmd) IMAGE_PLATFORM=linux/amd64
237237

238-
$(if $(push_image), \
239-
docker manifest create --amend "$(image_name)" "$(image_name)-amd64" "$(image_name)-arm64" && \
240-
docker manifest push "$(image_name)")
238+
$(if $(push_image), docker buildx imagetools create --tag "$(image_name)" "$(image_name)-amd64" "$(image_name)-arm64")
241239
endef
242240

243241
.PHONY: docker-image/pyroscope/build-multiarch

0 commit comments

Comments
 (0)