|
|
@@ -4,7 +4,7 @@ name: zz_backend # 定义流水线名称
|
|
|
|
|
|
|
|
|
steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|
|
- - name: clone # 流水线名称
|
|
|
+ - name: package # 流水线名称
|
|
|
image: maven:3-jdk-8 # 定义创建容器的Docker镜像
|
|
|
volumes: # 将容器内目录挂载到宿主机,仓库需要开启Trusted设置
|
|
|
- name: maven-cache
|
|
|
@@ -40,10 +40,10 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|
|
- name: build-start
|
|
|
image: appleboy/drone-ssh:latest # SSH工具镜像
|
|
|
settings:
|
|
|
- host: 120.79.166.78 # 远程连接地址
|
|
|
+ host: 192.168.0.222 # 远程连接地址
|
|
|
username: root # 远程连接账号
|
|
|
password:
|
|
|
- from_secret: password # 从Secret中读取SSH密码
|
|
|
+ from_secret: ssh_password # 从Secret中读取SSH密码
|
|
|
port: 22 # 远程连接端口
|
|
|
command_timeout: 5m # 远程执行命令超时时间
|
|
|
script:
|