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

This commit is contained in:
huanghs 2023-03-22 10:55:18 +08:00
parent 3ee52cf7e5
commit 0fe2e338b9

View File

@ -5,16 +5,24 @@ jobs:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
volumes:
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
env:
DOCKER_REGISTRY: registry.cn-hangzhou.aliyuncs.com
DOCKER_USERNAME: rsjst
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
cache: gradle
- name: Get Meta
id: meta
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}'`
echo ::set-output name=VERSION::`git describe --abbrev=0 --tags | awk -F"v" '{print $2}'`