diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index c484a9dde..69cefbf25 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -5,9 +5,9 @@ on: tags: - "v*" - env: REGISTRY_IMAGE: hamster1963/nezha-dash + ALIYUN_REGISTRY_IMAGE: registry.cn-guangzhou.aliyuncs.com/hamster-home/nezha-dash jobs: build-and-push: @@ -29,6 +29,12 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to AliYun Container Registry + uses: docker/login-action@v3 + with: + registry: registry.cn-guangzhou.aliyuncs.com + username: ${{ secrets.ALI_USERNAME }} + password: ${{ secrets.ALI_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta @@ -36,6 +42,7 @@ jobs: with: images: | ${{ env.REGISTRY_IMAGE }} + ${{ env.ALIYUN_REGISTRY_IMAGE }} tags: | type=raw,value=latest type=ref,event=tag