send slack notifications only at end
This commit is contained in:
parent
4f8b41c598
commit
d32b3976cd
1 changed files with 8 additions and 8 deletions
16
.drone.yml
16
.drone.yml
|
|
@ -8,14 +8,6 @@ trigger:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: slack
|
|
||||||
image: plugins/slack
|
|
||||||
settings:
|
|
||||||
webhook:
|
|
||||||
from_secret: slack_webhook
|
|
||||||
channel: general
|
|
||||||
when:
|
|
||||||
status: [ success, failure ]
|
|
||||||
- name: Prepare terraform files
|
- name: Prepare terraform files
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
|
|
@ -42,6 +34,14 @@ steps:
|
||||||
- "git remote set-url origin git@github.com:ViktorBarzin/infra.git"
|
- "git remote set-url origin git@github.com:ViktorBarzin/infra.git"
|
||||||
- "git commit -m 'Drone CI deploy commit [CI SKIP]' || echo 'No changes'"
|
- "git commit -m 'Drone CI deploy commit [CI SKIP]' || echo 'No changes'"
|
||||||
- "GIT_SSH_COMMAND='ssh -i ./secrets/deploy_key -o IdentitiesOnly=yes' git push origin master"
|
- "GIT_SSH_COMMAND='ssh -i ./secrets/deploy_key -o IdentitiesOnly=yes' git push origin master"
|
||||||
|
- name: slack
|
||||||
|
image: plugins/slack
|
||||||
|
settings:
|
||||||
|
webhook:
|
||||||
|
from_secret: slack_webhook
|
||||||
|
channel: general
|
||||||
|
when:
|
||||||
|
status: [ success, failure ]
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue