action-demo/.gitea/workflows/build.yaml

50 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-17 11:06:02 +08:00
name: Gitea Actions Demo
on: [push]
jobs:
Gitea-Actions:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
volumes:
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
steps:
- name: Checkout
uses: actions/checkout@v3
- run: cat README.md
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: repo.io/${GITHUB_REPOSITORY}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
2023-11-17 11:25:12 +08:00
- run: cat ${{ steps.meta.outputs.bake-file }}
2023-11-17 11:06:02 +08:00
- run: |
echo ${{ steps.meta.outputs.tags }}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11
- run: java -version
- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- run: pnpm -v
2023-06-26 09:56:18 +08:00
- run: pnpm install