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