37 lines
717 B
YAML
37 lines
717 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- cicd
|
|
pull_request:
|
|
branches:
|
|
- cicd
|
|
|
|
env:
|
|
DOMAIN_URL: git.kxsw.us #*修改为你
|
|
REPO: ${{ vars.REPO }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ppanel-web01
|
|
container:
|
|
image: node:20
|
|
strategy:
|
|
matrix:
|
|
# 只有node支持版本号别名
|
|
node: ['20.15.1']
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: https://gitea.cn/actions/checkout@v4
|
|
|
|
- id: tool-cache
|
|
uses: https://${{ vars.GIT_USERNAME }}:${{ vars.GIT_PASSWORD }}@${{ env.DOMAIN_URL }}/actions/gitea-tool-cache@v5
|
|
with:
|
|
# 只有node支持版本号别名
|
|
node-version: lts
|
|
|
|
- name: Run Build Docker
|
|
run: make build
|