更新 '.gitea/workflows/build.yaml'
All checks were successful
Gitea-Actions

This commit is contained in:
huanghs 2023-03-22 10:43:07 +08:00
parent c454f058dd
commit 3ee52cf7e5

View File

@ -6,13 +6,17 @@ jobs:
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
env: env:
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }} DOCKER_REGISTRY: registry.cn-hangzhou.aliyuncs.com
DOCKER_USERNAME: rsjst
steps: steps:
- name: Get Meta - name: Get Meta
id: 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