This commit is contained in:
14
.drone.yml
14
.drone.yml
@ -3,18 +3,8 @@ type: docker # 当前管道的类型
|
||||
name: test # 当前管道的名称
|
||||
|
||||
steps:
|
||||
# 第一步:克隆代码
|
||||
- name: 克隆代码
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git clone $DRONE_REMOTE_URL .
|
||||
- git checkout $DRONE_COMMIT
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
# 第二步:构建项目
|
||||
# 第一步:构建项目
|
||||
- name: 构建项目
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
@ -38,7 +28,7 @@ steps:
|
||||
strip_prefix: dist
|
||||
|
||||
# 第三步:部署到服务器
|
||||
- name: 清楚服务器缓存
|
||||
- name: 清除服务器缓存
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
|
Reference in New Issue
Block a user