Skip to content

Commit

Permalink
chore: enable notify-slack on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Denysenko committed Jun 14, 2023
1 parent e43b633 commit a048100
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .drone/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,26 @@ steps :
- kubectl version --output=yaml
- helm upgrade --install --atomic --wait --timeout 2m ${DRONE_REPO_NAME} ./ --values ./values.yaml --values ./${DRONE_DEPLOY_TO}-values.yaml --set image.tag=${DRONE_BRANCH:22}-${CI_PARENT_BUILD_NUMBER} -n ${DRONE_DEPLOY_TO}-env

- name : notify-slack
image : plugins/slack
settings :
webhook :
from_secret : SLACK_WEBHOOK
channel : dev
template : >
{{#success build.status}}
:large_green_circle: :ship: *${DRONE_COMMIT_MESSAGE}*
{{build.link}} ({{build.branch}}) by {{build.author}}
{{else}}
:large_red_circle: :anchor: {{build.link}} ({{build.branch}}) by {{build.author}}
{{/success}}
when :
status :
- failure
- success
depends_on :
- deploy

---

kind : pipeline
Expand Down Expand Up @@ -330,6 +350,26 @@ steps :
- kubectl version --output=yaml
- helm upgrade --install --atomic --wait --timeout 2m ${DRONE_REPO_NAME} ./ --values ./values.yaml --values ./${DRONE_DEPLOY_TO}-values.yaml --set image.tag=${DRONE_TAG} -n ${DRONE_DEPLOY_TO}-env

- name : notify-slack
image : plugins/slack
settings :
webhook :
from_secret : SLACK_WEBHOOK
channel : dev
template : >
{{#success build.status}}
:large_green_circle: :ship: *${DRONE_COMMIT_MESSAGE}*
{{build.link}} ({{build.branch}}) by {{build.author}}
{{else}}
:large_red_circle: :anchor: {{build.link}} ({{build.branch}}) by {{build.author}}
{{/success}}
when :
status :
- failure
- success
depends_on :
- deploy

---

kind : pipeline
Expand Down

0 comments on commit a048100

Please sign in to comment.