1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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 <http://tyn.ar3qvx.com:3000/{{repo.owner}}/{{repo.name}}/tree/{{build.branch}}|{{repo.name}}:{{build.branch}}> 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 <http://http://tyn.ar3qvx.com:3000/{{repo.owner}}/{{repo.name}}/tree/{{build.branch}}|{{repo.name}}:{{build.branch}}> 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 <http://http://tyn.ar3qvx.com:3000/{{repo.owner}}/{{repo.name}}/tree/{{build.branch}}|{{repo.name}}:{{build.branch}}> 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 ]
-
|