From 3ee52cf7e5160e1057f3a5080cd3309e09744d0a Mon Sep 17 00:00:00 2001 From: huanghs Date: Wed, 22 Mar 2023 10:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'.gitea/workflows/build.ya?= =?UTF-8?q?ml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 7fc4a46..bcc2375 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,13 +6,17 @@ jobs: container: image: catthehacker/ubuntu:act-latest env: - DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }} + DOCKER_REGISTRY: registry.cn-hangzhou.aliyuncs.com + DOCKER_USERNAME: rsjst steps: - name: Get Meta id: meta - run: echo ::set-output name=REGISTRY::`echo ${{ secrets.DOCKER_REGISTRY }}` + run: | + echo ::set-output name=REPO::`echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}'` + echo ::set-output name=VERSION::`echo ${GITHUB_REF} | awk -F"/" '{print $4}' | awk -F"v" '{print $2}'` - - run: echo ${{ env.DOCKER_REGISTRY }} + + - run: echo ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO }}:latest