Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 0 additions & 74 deletions .github/workflows/prod-deploy.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/prod-docker-build-push.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/prod-post-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Production — Post deployment"

on:
release:
types: [published]

# Limit execution to 1 and also makes new trigger events cancel currently running workflow
concurrency:
group: production-post-deployment
cancel-in-progress: true

permissions:
contents: read

jobs:
report-to-sentinel:
runs-on: ubuntu-latest
steps:
- name: Report deployment to Sentinel
uses: cds-snc/sentinel-forward-data-action@343498df663a056249bd96f260265aa80691b747 # main
with:
input_data: '{"product": "forms", "sha": "${{ github.sha }}", "version": "${{ github.ref_name }}", "repository": "${{ github.repository }}", "environment": "production", "status": "${{ job.status }}"}'
log_type: CDS_Product_Deployment_Data
log_analytics_workspace_id: ${{ secrets.LOG_ANALYTICS_WORKSPACE_ID }}
log_analytics_workspace_key: ${{ secrets.LOG_ANALYTICS_WORKSPACE_KEY }}
3 changes: 1 addition & 2 deletions .github/workflows/workflow-failure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
workflow_run:
workflows:
- "Staging — Post deployment"
- "Production - Deploy"
- "Production — Docker build and push"
- "Production — Post deployment"
types:
- completed

Expand Down
Loading