From 8e28ae781d7215bc863b93fea92d77e6b5d111fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Wed, 16 Aug 2023 16:43:02 +0800 Subject: [PATCH] Update build-image-and-push.yaml --- .github/workflows/build-image-and-push.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image-and-push.yaml b/.github/workflows/build-image-and-push.yaml index c7ec702a4..4640ba223 100644 --- a/.github/workflows/build-image-and-push.yaml +++ b/.github/workflows/build-image-and-push.yaml @@ -67,7 +67,6 @@ jobs: run: | GOPROXY="https://proxy.golang.org,direct" make docker-buildx-push BUILT_IMAGE="higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/higress" - docker push $BUILT_IMAGE:$GITHUB_SHA readarray -t IMAGES <<< "${{ steps.docker-meta.outputs.tags }}" for image in ${IMAGES[@]}; do echo "Image: $image" @@ -189,6 +188,13 @@ jobs: type=ref,event=tag type=semver,pattern={{version}} type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + + - name: Login to Docker Registry + uses: docker/login-action@v2 + with: + registry: ${{ env.PILOT_IMAGE_REGISTRY }} + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} - name: Build Gateway Image and Push run: |