Skip to content

Commit

Permalink
feat: notify website team on prod releases (#1867)
Browse files Browse the repository at this point in the history
Add a new step to the production release workflow that lets the
website team know that a new Articles release has been deployed.

This should help more quickly identify issues impacting the website
caused by the releases.
  • Loading branch information
patheard authored Aug 8, 2024
1 parent 2e7f92c commit be763a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-production-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ jobs:
working-directory: infrastructure/terragrunt/env/prod/ecs
run: terragrunt apply --terragrunt-non-interactive -auto-approve

- name: Post to slack
if: success()
run: |
json='{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":":lapage: New GC Articles <https://github.com/cds-snc/gc-articles/commit/${{ github.sha }}|release has been deployed>!"}}]}'
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK_WEBSITE_INFINITE }}
- name: Report deployment to Sentinel
if: always()
uses: cds-snc/sentinel-forward-data-action@main
Expand Down

0 comments on commit be763a4

Please sign in to comment.