Skip to content

Commit

Permalink
Legg til alarm ved feilende deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
madsleegiil committed May 10, 2024
1 parent a60bc5c commit 7114aee
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ jobs:
team: pto
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
- name: Slack Notification (test failure)
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: danger
SLACK_USERNAME: Github Actions
SLACK_ICON: https://github.com/github.png?size=48
SLACK_TITLE: 'Veilarblest: tester feilet under deploy til prod'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: 'Commit-message til feilende deploy: ${{ github.event.head_commit.message }}'

deploy-dev:
name: Deploy application to dev
Expand Down Expand Up @@ -68,3 +78,13 @@ jobs:
CLUSTER: prod-gcp
RESOURCE: nais.yaml
VAR: image=${{ needs.test-build-and-push.outputs.image }}
- name: Slack Notification (deploy failure)
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: danger
SLACK_USERNAME: Github Actions
SLACK_ICON: https://github.com/github.png?size=48
SLACK_TITLE: 'Veilarblest: deploy til prod feilet'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: 'Commit-message til feilende deploy: ${{ github.event.head_commit.message }}'

0 comments on commit 7114aee

Please sign in to comment.