MYDOC/.gitea/workflows/demo.yaml
洪剑峰 43aeab876c
All checks were successful
Node.js CI / build (push) Successful in 3m43s
123
2024-08-13 19:17:59 +08:00

31 lines
980 B
YAML

name: Node.js CI
on: [push]
jobs:
build:
steps:
- run: uname -a
- name: 克隆仓库
uses: http://47.116.170.60:3300/jeff/checkout@v3
- name: 指定node.js版本
uses: http://47.116.170.60:3300/jeff/setup-node@v4
with:
node-version: '20'
- run: yarn config get registry
- run: npm config get registry
- run: yarn config set registry http://47.116.170.60:40087
- run: npm config set registry http://47.116.170.60:40087
- run: yarn config get registry
- run: npm config get registry
- run: yarn cache clean
- run: ls -lR
- name: Install dependencies
run: yarn
- name: Build Docusaurus website
run: yarn build
- run: ls
- run: docker build -t jeffdoc:${{ gitea.sha }} .
#- run: docker stop jeffdoc
#- run: docker rm jeffdoc
- run: docker run --name=jeffdoc -d -p 9080:80 jeffdoc:${{ gitea.sha }}