Skip to content

DO NOT MERGE

DO NOT MERGE #1424

---
name: core-logging-deployment
on:
push:
branches:
- main
paths:
- 'terraform/environments/core-logging/**'
- 'terraform/modules/vpc-hub/**'
- 'terraform/modules/core-monitoring/**'
- '!**.md'
- '.github/workflows/core-logging-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
pull_request:
branches:
- main
paths:
- 'terraform/environments/core-logging/**'
- 'terraform/modules/vpc-hub/**'
- 'terraform/modules/core-monitoring/**'
- '!**.md'
- '.github/workflows/core-logging-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
workflow_dispatch:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
pull-requests: write
defaults:
run:
shell: bash
jobs:
retrieve-secrets:
uses: ministryofjustice/modernisation-platform-github-actions/.github/workflows/aws-secrets-management.yml@ce6aae491e57d583c65ae6e83ae58cd7d02a13da # v1.0.0
secrets:
MODERNISATION_PLATFORM_ACCOUNT_NUMBER: ${{ secrets.MODERNISATION_PLATFORM_ACCOUNT_NUMBER }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
core-logging-deployment-plan-apply:
needs: retrieve-secrets
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Decrypt Secrets
uses: ministryofjustice/modernisation-platform-github-actions/decrypt-secrets@ce6aae491e57d583c65ae6e83ae58cd7d02a13da # v1.0.0
with:
environment_management: ${{ needs.retrieve-secrets.outputs.environment_management }}
slack_webhook_url: ${{ needs.retrieve-secrets.outputs.slack_webhook_url }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: Run Reusable Terraform Plan Apply Workflow
uses: ./.github/workflows/reusable_terraform_plan_apply.yml
with:
working-directory: "terraform/environments/core-logging"
environment: production