更新 悟空升级后pipeline 示例

td-wenchao 2024-03-22 09:08:40 +00:00
parent 4bc4ac4ca4
commit a77efeb9c3

@ -1,14 +1,14 @@
悟空升级后ci后端采用k8s变化较大下面是使用示例
更详细信息请访问https://woodpecker-ci.org/docs/intro
# buildx
```
variables:
- &platforms linux/arm64/v8,linux/amd64
clone:
- name: git
- name: clone
image: harbor.tdology.com/woodpeckerci/plugin-git
settings:
skip-verify: true
@ -63,3 +63,31 @@ steps:
- tag
```
# web前端使用node 示例
```
clone:
- name: clone
image: harbor.tdology.com/woodpeckerci/plugin-git
settings:
skip-verify: true
remote: https://wukong.tdology.com/picloud/gitea.git
when:
event:
- pull_request
- tag
build-web:
image: harbor.tdology.com/library/node:21-alpine
directory: web/
commands:
- corepack enable
- yarn config set registry http://nexus.tdology.com/repository/npm/
- yarn install --frozen-lockfile --network-timeout 100000
- yarn build
when:
- event:
- pull_request
- tag
```