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

soulbird pushed a commit to branch test/relase_centos
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git


The following commit(s) were added to refs/heads/test/relase_centos by this 
push:
     new 05fa02b  release latest
05fa02b is described below

commit 05fa02bfc969816464df1401cb87676b4b33406d
Author: soulbird <[email protected]>
AuthorDate: Fri Sep 2 15:28:53 2022 +0800

    release latest
---
 .github/workflows/apisix_push_docker_hub.yaml |  2 +-
 Makefile                                      | 22 +++++++++++-----------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/apisix_push_docker_hub.yaml 
b/.github/workflows/apisix_push_docker_hub.yaml
index 197fea7..c87865b 100644
--- a/.github/workflows/apisix_push_docker_hub.yaml
+++ b/.github/workflows/apisix_push_docker_hub.yaml
@@ -24,4 +24,4 @@ jobs:
 
       - name: Push apisix image to Docker Hub
         run: |
-          APISIX_VERSION=2.13.3 make push-multiarch-on-centos
+          make push-multiarch-on-latest
diff --git a/Makefile b/Makefile
index d2d475a..7a137f8 100644
--- a/Makefile
+++ b/Makefile
@@ -92,17 +92,6 @@ build-on-debian:
        @$(call func_echo_success_status, "$@ -> [ Done ]")
 
 
-### push-on-centos : Push apache/apisix:xx-centos image
-# centos not support multiarch since it reply on x86 rpm package
-.PHONY: push-on-centos
-push-on-centos:
-       @$(call func_echo_status, "$@ -> [ Start ]")
-       $(ENV_DOCKER) push $(ENV_APISIX_IMAGE_TAG_NAME)-centos
-       $(ENV_DOCKER) build -t $(IMAGE_NAME):latest -f ./centos/Dockerfile .
-       $(ENV_DOCKER) push $(IMAGE_NAME):latest
-       @$(call func_echo_success_status, "$@ -> [ Done ]")
-
-
 ### push-on-alpine : Push apache/apisix:xx-alpine image
 .PHONY: push-multiarch-on-alpine
 push-multiarch-on-alpine:
@@ -147,6 +136,17 @@ push-multiarch-on-centos:
        @$(call func_echo_success_status, "$@ -> [ Done ]")
 
 
+### push-multiarch-on-latest : Push apache/apisix:latest image
+.PHONY: push-multiarch-on-latest
+push-multiarch-on-latest:
+       @$(call func_echo_status, "$@ -> [ Start ]")
+       $(ENV_DOCKER) buildx build --network=host --push \
+               -t $(IMAGE_NAME):latest \
+               --platform linux/amd64,linux/arm64 \
+               -f ./centos/Dockerfile .
+       @$(call func_echo_success_status, "$@ -> [ Done ]")
+
+
 ### build-on-alpine-cn : Build apache/apisix:xx-alpine image (for chinese)
 .PHONY: build-on-alpine-cn
 build-on-alpine-cn:

Reply via email to