Skip to content

Commit 6eb1fe8

Browse files
authored
Merge pull request #2236 from navikt/slack-failover
notify-slack i workflow til failover
2 parents cea81ee + 511874f commit 6eb1fe8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/deploy-failover.prod.yml

+11
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ jobs:
4141
vars_file: vars-prod-failover.yml
4242
config_file: config-failover.yml
4343
hpa_file: hpa-prod-failover.yml
44+
notify-slack:
45+
runs-on: ubuntu-latest
46+
needs: deploy
47+
if: failure()
48+
steps:
49+
- name: Notify Slack of failure
50+
uses: slackapi/slack-github-action@v1
51+
with:
52+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
53+
channel: '#team-navno-failover-prod'
54+
text: '🚨 Workflow *Deploy to prod-failover* failed! Check the logs: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'

0 commit comments

Comments
 (0)