From 8c563e4c21cd862df6344ce296c1db3a11ca8ae8 Mon Sep 17 00:00:00 2001 From: spacewander Date: Mon, 31 Oct 2022 15:55:51 +0800 Subject: [PATCH] ci: no longer need to push apisix-base Alpine image Signed-off-by: spacewander --- .github/workflows/push-apisix-base-image.yml | 48 -------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/push-apisix-base-image.yml diff --git a/.github/workflows/push-apisix-base-image.yml b/.github/workflows/push-apisix-base-image.yml deleted file mode 100644 index ca795cef7..000000000 --- a/.github/workflows/push-apisix-base-image.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Build and Push image - -on: - create - -jobs: - publish_image: - name: Build and Push apisix-base image - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v2.3.5 - with: - submodules: recursive - - - name: Extract Tags name - if: ${{ startsWith(github.ref, 'refs/tags/') }} - id: tag_env - shell: bash - run: | - echo "##[set-output name=version;]$(echo ${GITHUB_REF##*/})" - - - name: Extract Tags Type - if: ${{ startsWith(github.ref, 'refs/tags/') }} - id: tag_type - shell: bash - run: | - echo "##[set-output name=version;]$(echo ${GITHUB_REF#refs/tags/})" - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to Docker Hub - if: ${{ startsWith(steps.tag_type.outputs.version, 'apisix-base/') }} - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and Push Docker Image - if: ${{ startsWith(steps.tag_type.outputs.version, 'apisix-base/') }} - run: | - docker buildx build -t api7/apisix-base:${{ steps.tag_env.outputs.version }} --push \ - --build-arg VERSION=${{ steps.tag_env.outputs.version }} --platform linux/amd64,linux/arm64 \ - -f ./dockerfiles/Dockerfile.apisix-base.apk .