From d32b3976cd2cf1e82384afacd9122a99d2f965ec Mon Sep 17 00:00:00 2001 From: viktorbarzin Date: Sun, 22 Jan 2023 17:18:57 +0000 Subject: [PATCH] send slack notifications only at end --- .drone.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index ef2d412e..ca5569fd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,14 +8,6 @@ trigger: - push steps: - - name: slack - image: plugins/slack - settings: - webhook: - from_secret: slack_webhook - channel: general - when: - status: [ success, failure ] - name: Prepare terraform files image: alpine commands: @@ -42,6 +34,14 @@ steps: - "git remote set-url origin git@github.com:ViktorBarzin/infra.git" - "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" + - name: slack + image: plugins/slack + settings: + webhook: + from_secret: slack_webhook + channel: general + when: + status: [ success, failure ] --- kind: pipeline