|
@@ -27,9 +27,9 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|
# exclude:
|
|
# exclude:
|
|
# - dev
|
|
# - dev
|
|
settings:
|
|
settings:
|
|
- host: weiye.link # 远程连接地址,可以是IP可以是域名
|
|
|
|
|
|
+ host: 123.60.43.219 # 远程连接地址,可以是IP可以是域名
|
|
username: root # 远程连接账号
|
|
username: root # 远程连接账号
|
|
-# password: 123456 #明文密码
|
|
|
|
|
|
+ password: Ab18315108835 #明文密码
|
|
# password:
|
|
# password:
|
|
# from_secret: ssh_password # 从Secret中读取SSH密码
|
|
# from_secret: ssh_password # 从Secret中读取SSH密码
|
|
key:
|
|
key:
|
|
@@ -61,18 +61,18 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
|
|
# - cd /www/wwwroot/data/maven/build/drone-study
|
|
# - cd /www/wwwroot/data/maven/build/drone-study
|
|
# - chmod +x restart.sh # 更改为可执行脚本
|
|
# - chmod +x restart.sh # 更改为可执行脚本
|
|
# - ./restart.sh # 重启docker容器
|
|
# - ./restart.sh # 重启docker容器
|
|
- - name: notify # 3. 通知(这里使用了钉钉通知,可以使用微信通知、邮件通知等)
|
|
|
|
- pull: if-not-exists
|
|
|
|
- image: guoxudongdocker/drone-dingtalk:latest
|
|
|
|
- settings:
|
|
|
|
- token:
|
|
|
|
- from_secret: dingtalk_token
|
|
|
|
- type: markdown
|
|
|
|
- message_color: true
|
|
|
|
- message_pic: true
|
|
|
|
- sha_link: true
|
|
|
|
- when:
|
|
|
|
- status: [failure, success]
|
|
|
|
|
|
+# - name: notify # 3. 通知(这里使用了钉钉通知,可以使用微信通知、邮件通知等)
|
|
|
|
+# pull: if-not-exists
|
|
|
|
+# image: guoxudongdocker/drone-dingtalk:latest
|
|
|
|
+# settings:
|
|
|
|
+# token:
|
|
|
|
+# from_secret: dingtalk_token
|
|
|
|
+# type: markdown
|
|
|
|
+# message_color: true
|
|
|
|
+# message_pic: true
|
|
|
|
+# sha_link: true
|
|
|
|
+# when:
|
|
|
|
+# status: [failure, success]
|
|
|
|
|
|
volumes: # 定义流水线挂载目录,用于共享数据
|
|
volumes: # 定义流水线挂载目录,用于共享数据
|
|
- name: maven-build
|
|
- name: maven-build
|