diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 2bed758..c484a9d 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -5,6 +5,10 @@ on: tags: - "v*" + +env: + REGISTRY_IMAGE: hamster1963/nezha-dash + jobs: build-and-push: runs-on: ubuntu-latest @@ -25,20 +29,13 @@ 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 uses: docker/metadata-action@v5 with: images: | - hamster1963/nezha-dash - registry.cn-guangzhou.aliyuncs.com/hamster-home/nezha-dash + ${{ env.REGISTRY_IMAGE }} tags: | type=raw,value=latest type=ref,event=tag