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 eba3daf commit 41d4f63
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 25 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/core-network-services-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'terraform/modules/firewall-policy/**'
- '!**.md'
- '.github/workflows/core-network-services-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
pull_request:
branches:
- main
Expand All @@ -21,6 +22,7 @@ on:
- 'terraform/modules/core-monitoring/**'
- '!**.md'
- '.github/workflows/core-network-services-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
workflow_dispatch:

permissions:
Expand All @@ -38,5 +40,5 @@ jobs:
working-directory: "terraform/environments/core-network-services"
environment: production
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 }}
6 changes: 4 additions & 2 deletions .github/workflows/core-security-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'terraform/modules/core-monitoring/**'
- '!**.md'
- '.github/workflows/core-security-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
pull_request:
branches:
- main
Expand All @@ -20,6 +21,7 @@ on:
- 'terraform/modules/core-monitoring/**'
- '!**.md'
- '.github/workflows/core-security-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
workflow_dispatch:

permissions:
Expand All @@ -37,5 +39,5 @@ jobs:
working-directory: "terraform/environments/core-security"
environment: production
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 }}
6 changes: 4 additions & 2 deletions .github/workflows/core-shared-services-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- 'terraform/modules/kms/**'
- '!**.md'
- '.github/workflows/core-shared-services-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
pull_request:
branches:
- main
Expand All @@ -22,6 +23,7 @@ on:
- 'terraform/modules/kms/**'
- '!**.md'
- '.github/workflows/core-shared-services-deployment.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
workflow_run:
workflows: ["Terraform: New environment"]
types: [completed]
Expand All @@ -43,5 +45,5 @@ jobs:
working-directory: "terraform/environments/core-shared-services"
environment: production
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 }}
6 changes: 4 additions & 2 deletions .github/workflows/core-vpc-development-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- 'terraform/modules/vpc-nacls/**'
- 'terraform/modules/ram-resource-share/**'
- 'terraform/modules/core-vpc-tgw-routes/**'
- '.github/workflows/reusable_terraform_plan_apply.yml'
- '!**.md'
pull_request:
branches:
Expand All @@ -37,6 +38,7 @@ on:
- 'terraform/modules/vpc-nacls/**'
- 'terraform/modules/ram-resource-share/**'
- 'terraform/modules/core-vpc-tgw-routes/**'
- '.github/workflows/reusable_terraform_plan_apply.yml'
- '!**.md'
workflow_dispatch:

Expand All @@ -60,8 +62,8 @@ jobs:
working-directory: "terraform/environments/core-vpc"
environment: development
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 }}

member-account-ram-association:
runs-on: [ ubuntu-latest ]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/core-vpc-preproduction-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- 'terraform/modules/vpc-nacls/**'
- 'terraform/modules/ram-resource-share/**'
- 'terraform/modules/core-vpc-tgw-routes/**'
- '.github/workflows/reusable_terraform_plan_apply.yml'
- '!**.md'
pull_request:
branches:
Expand All @@ -37,6 +38,7 @@ on:
- 'terraform/modules/vpc-nacls/**'
- 'terraform/modules/ram-resource-share/**'
- 'terraform/modules/core-vpc-tgw-routes/**'
- '.github/workflows/reusable_terraform_plan_apply.yml'
- '!**.md'
workflow_dispatch:

Expand All @@ -59,8 +61,8 @@ jobs:
working-directory: "terraform/environments/core-vpc"
environment: preproduction
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 }}

member-account-ram-association:
runs-on: [ ubuntu-latest ]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/core-vpc-production-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- 'terraform/modules/vpc-nacls/**'
- 'terraform/modules/ram-resource-share/**'
- 'terraform/modules/core-vpc-tgw-routes/**'
- '.github/workflows/reusable_terraform_plan_apply.yml'
- '!**.md'
pull_request:
branches:
Expand All @@ -37,6 +38,7 @@ on:
- 'terraform/modules/vpc-nacls/**'
- 'terraform/modules/ram-resource-share/**'
- 'terraform/modules/core-vpc-tgw-routes/**'
- '.github/workflows/reusable_terraform_plan_apply.yml'
- '!**.md'
workflow_dispatch:

Expand All @@ -59,8 +61,8 @@ jobs:
working-directory: "terraform/environments/core-vpc"
environment: production
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 }}

member-account-ram-association:
runs-on: [ ubuntu-latest ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/core-vpc-test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
working-directory: "terraform/environments/core-vpc"
environment: test
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 }}

member-account-ram-association:
runs-on: [ ubuntu-latest ]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/modernisation-platform-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- '!**.md'
- '.github/workflows/modernisation-platform-account.yml'
- 'collaborators.json'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
pull_request:
Expand All @@ -15,6 +16,7 @@ on:
- '!**.md'
- '.github/workflows/modernisation-platform-account.yml'
- 'collaborators.json'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
types: [opened, edited, reopened, synchronize]
Expand All @@ -35,5 +37,5 @@ jobs:
working-directory: "terraform/modernisation-platform-account"
workflow_id: "modernisation-platform-account"
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 }}
3 changes: 3 additions & 0 deletions .github/workflows/reusable_terraform_plan_apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
with:
environment_management: ${{ needs.retrieve-secrets.outputs.environment_management }}
slack_webhook_url: ${{ needs.retrieve-secrets.outputs.slack_webhook_url }}
pagerduty_token: ${{ needs.retrieve-secrets.outputs.pagerduty_token }}
pagerduty_userapi_token: ${{ needs.retrieve-secrets.outputs.pagerduty_userapi_token }}
terraform_github_token: ${{ needs.retrieve-secrets.outputs.terraform_github_token }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}

- name: Set up variables
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/terraform-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ jobs:
working-directory: "terraform/github"
workflow_id: "github"
secrets:
modernisation_platform_environments: ${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}
gh_workflow_token: ${{ secrets.TERRAFORM_GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MODERNISATION_PLATFORM_ACCOUNT_NUMBER: "${{ secrets.MODERNISATION_PLATFORM_ACCOUNT_NUMBER }}"
PASSPHRASE: ${{ secrets.PASSPHRASE }}

create-github-environments:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/terraform-pagerduty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- 'terraform/pagerduty/**'
- '!**.md'
- '.github/workflows/terraform-pagerduty.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
pull_request:
paths:
- 'terraform/pagerduty/**'
- '!**.md'
- '.github/workflows/terraform-pagerduty.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
types: [opened, edited, reopened, synchronize]
Expand All @@ -33,7 +35,5 @@ jobs:
working-directory: "terraform/pagerduty"
workflow_id: "pagerduty"
secrets:
modernisation_platform_environments: ${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}
pagerduty_token: ${{ secrets.PAGERDUTY_TOKEN }}
pagerduty_userapi_token: ${{ secrets.PAGERDUTY_USERAPI_TOKEN}}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MODERNISATION_PLATFORM_ACCOUNT_NUMBER: "${{ secrets.MODERNISATION_PLATFORM_ACCOUNT_NUMBER }}"
PASSPHRASE: ${{ secrets.PASSPHRASE }}
6 changes: 4 additions & 2 deletions .github/workflows/terraform-single-sign-on.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- 'terraform/single-sign-on/**'
- '!**.md'
- '.github/workflows/terraform-single-sign-on.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
pull_request:
paths:
- 'terraform/single-sign-on/**'
- '!**.md'
- '.github/workflows/terraform-single-sign-on.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
types: [opened, edited, reopened, synchronize]
Expand All @@ -33,5 +35,5 @@ jobs:
working-directory: "terraform/single-sign-on"
workflow_id: "single-sign-on"
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 }}

0 comments on commit 41d4f63

Please sign in to comment.