32432
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-24 23:48:28 +08:00
parent 3b1e08b6e6
commit 765198c4c7

View File

@ -3,18 +3,8 @@ type: docker # 当前管道的类型
name: test # 当前管道的名称 name: test # 当前管道的名称
steps: steps:
# 第一步:克隆代码
- name: 克隆代码
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL .
- git checkout $DRONE_COMMIT
when:
event:
- push
- pull_request
# 第步:构建项目 # 第步:构建项目
- name: 构建项目 - name: 构建项目
image: node:18-alpine image: node:18-alpine
commands: commands:
@ -38,7 +28,7 @@ steps:
strip_prefix: dist strip_prefix: dist
# 第三步:部署到服务器 # 第三步:部署到服务器
- name: 服务器缓存 - name: 服务器缓存
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: host: