diff --git a/%E6%82%9F%E7%A9%BA%E5%8D%87%E7%BA%A7%E5%90%8Epipeline-%E7%A4%BA%E4%BE%8B.md b/%E6%82%9F%E7%A9%BA%E5%8D%87%E7%BA%A7%E5%90%8Epipeline-%E7%A4%BA%E4%BE%8B.md index e4c0a90..3acb7d8 100644 --- a/%E6%82%9F%E7%A9%BA%E5%8D%87%E7%BA%A7%E5%90%8Epipeline-%E7%A4%BA%E4%BE%8B.md +++ b/%E6%82%9F%E7%A9%BA%E5%8D%87%E7%BA%A7%E5%90%8Epipeline-%E7%A4%BA%E4%BE%8B.md @@ -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 +```