ci
This commit is contained in:
parent
601425c783
commit
3eb4d5ff80
@ -9,10 +9,7 @@ on:
|
||||
- cicd
|
||||
|
||||
env:
|
||||
DOMAIN_URL: git.studyfor.work #*修改为你自己的域名
|
||||
REPO: ${{ vars.REPO }}
|
||||
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ vars.DOCKER_PASSWORD}}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -31,15 +28,21 @@ jobs:
|
||||
|
||||
### https://github.com/pnpm/action-setup
|
||||
- name: Set up Node.js
|
||||
uses: https://github.com/pnpm/action-setup@v4
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9.15.9
|
||||
run_install: false
|
||||
|
||||
- id: tool-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
# 只有node支持版本号别名
|
||||
node-version: lts
|
||||
|
||||
- uses: https://gitea.cn/actions/setup-node@v4
|
||||
with:
|
||||
# gitea-tool-cache导出 node 具体版本
|
||||
node-version: ${{ steps.tool-cache.outputs.node-version }}
|
||||
registry-url: https://registry.npmmirror.com
|
||||
cache: pnpm
|
||||
|
||||
@ -49,14 +52,5 @@ jobs:
|
||||
- name: Install dependencies
|
||||
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
|
||||
run: make build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user