ci
This commit is contained in:
parent
cb705c0150
commit
601425c783
@ -9,7 +9,10 @@ on:
|
||||
- cicd
|
||||
|
||||
env:
|
||||
DOMAIN_URL: git.studyfor.work #*修改为你自己的域名
|
||||
REPO: ${{ vars.REPO }}
|
||||
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ vars.DOCKER_PASSWORD}}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -18,9 +21,42 @@ jobs:
|
||||
matrix:
|
||||
# 只有node支持版本号别名
|
||||
node: ['20.15.1']
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
ls ${{gitea.workspace}}
|
||||
uses: https://gitea.cn/actions/checkout@v4
|
||||
|
||||
- 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
|
||||
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
|
||||
Loading…
x
Reference in New Issue
Block a user