action-demo/.gitea/workflows/build.yaml
huanghs 3ee52cf7e5
All checks were successful
Gitea-Actions
更新 '.gitea/workflows/build.yaml'
2023-03-22 10:43:07 +08:00

23 lines
626 B
YAML

name: Gitea Actions Demo
on: [push]
jobs:
Gitea-Actions:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_REGISTRY: registry.cn-hangzhou.aliyuncs.com
DOCKER_USERNAME: rsjst
steps:
- 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}'`
- run: echo ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO }}:latest