ci
This commit is contained in:
parent
601425c783
commit
3eb4d5ff80
@ -9,10 +9,7 @@ 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:
|
||||||
@ -31,15 +28,21 @@ jobs:
|
|||||||
|
|
||||||
### https://github.com/pnpm/action-setup
|
### https://github.com/pnpm/action-setup
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: https://github.com/pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 9.15.9
|
version: 9.15.9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
|
- id: tool-cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
# 只有node支持版本号别名
|
||||||
|
node-version: lts
|
||||||
|
|
||||||
- uses: https://gitea.cn/actions/setup-node@v4
|
- uses: https://gitea.cn/actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
# gitea-tool-cache导出 node 具体版本
|
# gitea-tool-cache导出 node 具体版本
|
||||||
|
node-version: ${{ steps.tool-cache.outputs.node-version }}
|
||||||
registry-url: https://registry.npmmirror.com
|
registry-url: https://registry.npmmirror.com
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
@ -49,14 +52,5 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Run Build Project
|
|
||||||
run: pnpm run build
|
|
||||||
|
|
||||||
- name: Run Build Docker
|
- name: Run Build Docker
|
||||||
run: make docker
|
run: make build
|
||||||
|
|
||||||
- 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