This commit is contained in:
shanshanzhong 2025-09-25 03:34:09 -07:00
parent cb705c0150
commit 601425c783

View File

@ -9,7 +9,10 @@ on:
- cicd - cicd
env: env:
DOMAIN_URL: git.studyfor.work #*修改为你自己的域名
REPO: ${{ vars.REPO }} REPO: ${{ vars.REPO }}
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ vars.DOCKER_PASSWORD}}
jobs: jobs:
build: build:
@ -18,9 +21,42 @@ jobs:
matrix: matrix:
# 只有node支持版本号别名 # 只有node支持版本号别名
node: ['20.15.1'] node: ['20.15.1']
steps: steps:
- name: Checkout code - name: Checkout code
run: | uses: https://gitea.cn/actions/checkout@v4
ls ${{gitea.workspace}}
- name: change npm registry mirror
run: npm config set registry https://registry.npmmirror.com
### https://github.com/pnpm/action-setup
- name: Set up Node.js
uses: https://github.com/pnpm/action-setup@v4
with:
version: 9.15.9
run_install: false
- uses: https://gitea.cn/actions/setup-node@v4
with:
# gitea-tool-cache导出 node 具体版本
registry-url: https://registry.npmmirror.com
cache: pnpm
- name: set cavans registry
run: pnpm config set canvas_binary_host_mirror https://registry.npmmirror.com/-/binary/canvas
- name: Install dependencies - name: Install dependencies
run: make build run: pnpm install
- name: Run Build Project
run: pnpm run build
- name: Run Build Docker
run: make docker
- name: Run Push Image
run: make publish-docker
- name: Run Docker Compose
run: make run-docker