更新 '.gitea/workflows/build.yaml'
Some checks are pending
Gitea-Actions

This commit is contained in:
huanghs 2023-03-23 11:24:48 +08:00
parent 0b6fd361ba
commit 5186557e59

View File

@ -24,10 +24,8 @@ jobs:
- name: Get Meta
id: meta
run: |
echo ::set-output name=REPO::`echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}'`
echo ::set-output name=VERSION::`git describe --abbrev=0 --tags | awk -F"v" '{print $2}'`
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(echo ${{ github.ref }} | awk -F"/" '{print $3}' | awk -F"v" '{print $2}') >> $GITHUB_OUTPUT
- run: echo ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO }}:latest
- run: echo ${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}