更新 悟空升级后pipeline 示例
parent
4bc4ac4ca4
commit
a77efeb9c3
@ -1,14 +1,14 @@
|
|||||||
悟空升级后,ci后端采用k8s,变化较大,下面是使用示例
|
悟空升级后,ci后端采用k8s,变化较大,下面是使用示例
|
||||||
更详细信息请访问https://woodpecker-ci.org/docs/intro
|
更详细信息请访问https://woodpecker-ci.org/docs/intro
|
||||||
|
|
||||||
|
# buildx
|
||||||
|
|
||||||
```
|
```
|
||||||
variables:
|
variables:
|
||||||
- &platforms linux/arm64/v8,linux/amd64
|
- &platforms linux/arm64/v8,linux/amd64
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
- name: git
|
- name: clone
|
||||||
image: harbor.tdology.com/woodpeckerci/plugin-git
|
image: harbor.tdology.com/woodpeckerci/plugin-git
|
||||||
settings:
|
settings:
|
||||||
skip-verify: true
|
skip-verify: true
|
||||||
@ -63,3 +63,31 @@ steps:
|
|||||||
- tag
|
- 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
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user