From e14af9b4fc2925ec5c31e74279d8ba67a52f82b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E4=BD=B3=E9=B8=BF?= <2446434034@qq.com> Date: Mon, 12 Aug 2024 01:17:15 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.drone.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index f21b5e7..e9845d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,21 +4,21 @@ name: vuepress-build steps: - name: install-dependencies - image: node:18 # 使用 Node.js 镜像来安装依赖 + image: node:20.16.0 # 使用 Node.js 镜像来安装依赖 commands: - npm install # 安装项目依赖 - name: build - image: node:18 # 使用 Node.js 镜像来构建项目 + image: node:20.16.0 # 使用 Node.js 镜像来构建项目 commands: - npm run build # 构建 VuePress 项目 - name: deploy image: plugins/rsync # 使用 rsync 插件进行部署(可以根据需要选择其他插件) settings: - remote: user@remote-server:8.219.93.84 # 远程服务器地址 - username: $REMOTE_USER # 使用环境变量定义远程用户 - password: $REMOTE_PASSWORD # 使用环境变量定义远程密码 + remote: 8.219.93.84 # 远程服务器地址 + username: 15185626476 # 使用环境变量定义远程用户 + password: LJH@123456 # 使用环境变量定义远程密码 source: ./docs/.vuepress/dist # 构建输出目录 target: /path/to/remote/deploy/directory # 远程目标目录 when: