You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
924 B
44 lines
924 B
kind: pipeline
|
|
type: ssh # 使用SSH
|
|
name: nginx-proxy-pipeline
|
|
|
|
|
|
server:
|
|
host: 172.16.0.1
|
|
user: root
|
|
#password: 1111111111111111111111
|
|
password:
|
|
from_secret: 11password # Secrets保存的密码
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: build-img
|
|
commands:
|
|
- echo Drone start
|
|
- date
|
|
- /root/sre/build_nginx_proxy_prod.sh
|
|
- date
|
|
- echo Drone end
|
|
|
|
- name: wechat
|
|
image: lizheming/drone-wechat
|
|
settings:
|
|
corpid: 111111111111111111111111
|
|
corp_secret: 111111111111111111111111111
|
|
agent_id: 1000002
|
|
to_user: 11111111111111111111111111111
|
|
to_party: 112
|
|
to_tag: ${DRONE_REPO_NAME}
|
|
msg_url: ${DRONE_BUILD_LINK}
|
|
safe: 1
|
|
btn_txt: more
|
|
title: ${DRONE_REPO_NAME}
|
|
message: >
|
|
{%if success %}
|
|
build {{build.number}} succeeded. Good job.
|
|
{% else %}
|
|
build {{build.number}} failed. Fix me please.
|
|
{% endif %}
|