This commit is contained in:
parent
2516281619
commit
e14af9b4fc
10
.drone.yml
10
.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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue