From b78ab564afe00bc5ba7c4dd4832ebf7c4bfe694c Mon Sep 17 00:00:00 2001 From: Yue Fei Date: Wed, 5 Jun 2024 19:21:32 +0800 Subject: [PATCH] Update docker.yml --- .github/workflows/docker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2277b66f..1f0ab779 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,22 +21,22 @@ jobs: # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Login to ACR Beijing region - uses: aliyun/acr-login@v1 + uses: docker/login-action@v1 with: - login-server: "https://${{ env.REGISTRY }}" + registry: ${{ env.REGISTRY }} username: ${{ secrets.ACR_USER }} password: ${{ secrets.ACR_PASSWORD }} - name: Login to ACR Hangzhou region - uses: aliyun/acr-login@v1 + uses: docker/login-action@v1 with: - login-server: "https://${{ env.REGISTRY_HZ }}" + registry: ${{ env.REGISTRY_HZ }} username: ${{ secrets.ACR_USER }} password: ${{ secrets.ACR_PASSWORD }} - name: Build and push image env: - IMAGE_TAG: pairag_0.0.1 + IMAGE_TAG: 0.0.1 run: | docker build -t ${{ env.REGISTRY }}/mybigpai/pairag:$IMAGE_TAG . docker tag ${{ env.REGISTRY }}/mybigpai/pairag:$IMAGE_TAG ${{ env.REGISTRY_HZ }}/mybigpai/pairag:$IMAGE_TAG