diff --git a/.drone/pipelines.yml b/.drone/pipelines.yml index ff54ec6..ad60782 100644 --- a/.drone/pipelines.yml +++ b/.drone/pipelines.yml @@ -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 @@ -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