This is an automated email from the ASF dual-hosted git repository.

alinsran pushed a commit to branch release/apisix-3.8.0
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git


The following commit(s) were added to refs/heads/release/apisix-3.8.0 by this 
push:
     new 9b9217d  ci: support uploading images of arm architecture (#545)
9b9217d is described below

commit 9b9217d34d1cd447797a17d3a0e0152b88dabb99
Author: AlinsRan <[email protected]>
AuthorDate: Thu Feb 22 18:19:02 2024 +0800

    ci: support uploading images of arm architecture (#545)
---
 Makefile                               | 8 ++++----
 all-in-one/apisix-dashboard/Dockerfile | 2 ++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 239422b..6892438 100644
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,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 ]")
 
@@ -123,7 +123,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 ]")
 
@@ -134,7 +134,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 ]")
 
@@ -148,7 +148,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 ]")
diff --git a/all-in-one/apisix-dashboard/Dockerfile 
b/all-in-one/apisix-dashboard/Dockerfile
index f41eb82..7daa82a 100644
--- a/all-in-one/apisix-dashboard/Dockerfile
+++ b/all-in-one/apisix-dashboard/Dockerfile
@@ -101,6 +101,8 @@ COPY --from=pre-build /usr/local/apisix-dashboard .
 WORKDIR /usr/local/apisix-dashboard/web
 
 RUN if [ "$ENABLE_PROXY" = "true" ] ; then yarn config set registry 
https://registry.npmmirror.com/ ; fi \
+    # FIXME: when the certificate is valid
+    && yarn config set "strict-ssl" false -g \
     && yarn install \
     && yarn build
 

Reply via email to