From dc94f0cad02eac8e237b0dc40e173bb1f4db2d92 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 30 Sep 2024 10:25:53 +0800 Subject: [PATCH] fix: workflows deploy config --- .github/workflows/Deploy.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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