pipeline: notify_begin_slack: image: plugins/slack webhook: https://hooks.slack.com/services/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 channel: general username: drone-bot template: "<{{build.link}}|Deployment #{{build.number}} started> on by: {{build.author}}" when: branch: [ master, staging ] # drone deploy octocat/hello-world 24 staging push_image_to_test_registry: image: plugins/docker registry: tyn.ar3qvx.com repo: tyn.ar3qvx.com/tmp/dongcj_test docker_image: dongcj/centos7 tags: latest # Manage Secrets. secrets: [ docker_username, docker_password ] # for rancher publish_to_test_env: image: peloton/drone-rancher url: http://tyn.ar3qvx.com:8080 access_key: 936F7879DDC49BFC5EFC secret_key: gM9Ncq8yX4R4f1nea6SLNqM49Rvpd4yu8m5TbfeL service: testdrone/testservice docker_image: dongcj/centos7 start_first: false confirm: true timeout: 240 batch_size: 5 test_stage: image: dongcj/webshell confirm: true timeout: 240 commands: - sleep 20 notify_test_stage: image: plugins/slack webhook: https://hooks.slack.com/services/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 channel: general username: drone-bot when: branch: [ master, staging ] status: [ success ] template: "<{{build.link}}|Deployment #{{build.number}} success> on by: {{build.author}}" notify_end_slack: image: plugins/slack webhook: https://hooks.slack.com/services/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 channel: general username: drone-bot when: branch: [ master, staging ] status: [ success, failure ] template: "<{{build.link}}|Deployment #{{build.number}} stop> on by: {{build.author}}" notify_end_email: image: drillster/drone-email host: smtp.mxhichina.com skip_verify: false username: admin@dongcj.com password: Dcj85509336 from: drone@svicloud.com recipients: [ dongchaojun@svi-tech.com.cn, admin@svicloud.com ] recipients_only: false when: status: [ changed, failure ]