Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sukeshreddyg committed Jan 16, 2025
1 parent 6d74a0d commit 4feb56f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/core-logging-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,23 @@ defaults:
shell: bash

jobs:
core-logging-deployment-plan-apply:
uses: ./.github/workflows/reusable_terraform_plan_apply.yml
with:
working-directory: "terraform/environments/core-logging"
environment: production
retrieve-secrets:
uses: ministryofjustice/modernisation-platform-github-actions/.github/workflows/aws-secrets-management.yml@ce6aae491e57d583c65ae6e83ae58cd7d02a13da # v1.0.0
secrets:
modernisation_platform_environments: "${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}"
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
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: 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
17 changes: 1 addition & 16 deletions .github/workflows/reusable_terraform_plan_apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,10 @@ on:
description: 'Unique ID for the calling workflow'
required: false
type: string
secrets:
modernisation_platform_environments:
required: true
SLACK_WEBHOOK_URL:
required: true
pagerduty_token:
required: false
pagerduty_userapi_token:
required: false
gh_workflow_token:
required: false

env:
ENVIRONMENT_MANAGEMENT: "${{ secrets.modernisation_platform_environments }}"
TF_VAR_github_token: "${{ secrets.gh_workflow_token }}"
TF_IN_AUTOMATION: true
TF_VAR_pagerduty_token: ${{ secrets.pagerduty_token }}
TF_VAR_pagerduty_user_token: ${{ secrets.pagerduty_userapi_token }}


jobs:
plan-and-apply:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4feb56f

Please sign in to comment.