From b869a902438926a2c2eb3f976a1c792fea698341 Mon Sep 17 00:00:00 2001 From: AlinsRan Date: Thu, 22 Feb 2024 05:37:19 +0000 Subject: [PATCH] ci: support uploading images of arm architectur --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cacc1078..8bb88c1c 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ push-multiarch-dev-on-debian: @$(call func_echo_status, "$@ -> [ Start ]") $(ENV_DOCKER) buildx build --network=host --push \ -t $(IMAGE_NAME):dev \ - --platform linux/amd64 \ + --platform linux/amd64,linux/arm64 \ -f ./debian-dev/Dockerfile debian-dev @$(call func_echo_success_status, "$@ -> [ Done ]") @@ -124,7 +124,7 @@ push-multiarch-on-debian: @$(call func_echo_status, "$@ -> [ Start ]") $(ENV_DOCKER) buildx build --network=host --push \ -t $(ENV_APISIX_IMAGE_TAG_NAME)-debian \ - --platform linux/amd64 \ + --platform linux/amd64,linux/arm64 \ -f ./debian/Dockerfile debian @$(call func_echo_success_status, "$@ -> [ Done ]") @@ -135,7 +135,7 @@ push-multiarch-on-redhat: @$(call func_echo_status, "$@ -> [ Start ]") $(ENV_DOCKER) buildx build --network=host --push \ -t $(ENV_APISIX_IMAGE_TAG_NAME)-redhat \ - --platform linux/amd64 \ + --platform linux/amd64,linux/arm64 \ -f ./redhat/Dockerfile redhat @$(call func_echo_success_status, "$@ -> [ Done ]") @@ -149,7 +149,7 @@ push-multiarch-on-latest: @if [ "$(shell echo "$(APISIX_VERSION) $(MAX_APISIX_VERSION)" | tr " " "\n" | sort -rV | head -n 1)" == "$(APISIX_VERSION)" ]; then \ $(ENV_DOCKER) buildx build --network=host --push \ -t $(IMAGE_NAME):latest \ - --platform linux/amd64 \ + --platform linux/amd64,linux/arm64 \ -f ./debian/Dockerfile debian; \ fi @$(call func_echo_success_status, "$@ -> [ Done ]")