From ade29df89c6ae100b2e5f1d1895a11d38c048fd0 Mon Sep 17 00:00:00 2001 From: yukai Date: Tue, 22 Oct 2024 15:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=9E=84=E5=BB=BA=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index e8452cb..cd4ec61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ name: build steps: - name: build - image: node:18.20.3-alpine + image: docker.linbin.site/node:18.20.3-alpine pull: if-not-exists volumes: - name: cache @@ -12,26 +12,27 @@ steps: - name: node-build path: /app/build commands: ## 此处自己定义项目工程的构建命令 - - npm install -g pnpm + - npm install -g pnpm --registry=https://registry.npmmirror.com + - pnpm config set registry https://registry.npmmirror.com - pnpm i - pnpm run build:prod - ls -l - cp -r dist /app/build/ when: ## 定义在什么情况下触发构建任务 branch: master #定义在哪个分支触发构建任务 - - name: scp - image: appleboy/drone-scp - volumes: - - name: node-build - path: /app/build - settings: - host: 60.204.138.3 - username: root - password: 5xhqamyZ - port: 22 - target: /data/app/dmjs-merchant-admin - source: /app/build/dist - overwrite: true +# - name: scp +# image: appleboy/drone-scp +# volumes: +# - name: node-build +# path: /app/build +# settings: +# host: 60.204.138.3 +# username: root +# password: 5xhqamyZ +# port: 22 +# target: /data/app/dmjs-merchant-admin +# source: /app/build/dist +# overwrite: true volumes: - name: node-build host: