From a77efeb9c3b60ecf656c271f151a611f0602881f Mon Sep 17 00:00:00 2001 From: td-wenchao Date: Fri, 22 Mar 2024 09:08:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E6=82=9F=E7=A9=BA?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=90=8Epipeline=20=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...%A7%E5%90%8Epipeline-%E7%A4%BA%E4%BE%8B.md | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) 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 +```