Skip to content

Commit

Permalink
Separating Staging Terraform Workflows into Separate Jobs (#1412)
Browse files Browse the repository at this point in the history
Confirmed with Steve and Pond that this looks ok.
  • Loading branch information
ben851 authored Jul 4, 2024
1 parent 71924dd commit 51e93a5
Show file tree
Hide file tree
Showing 7 changed files with 809 additions and 91 deletions.
23 changes: 23 additions & 0 deletions .github/actions/setup-terraform/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "setup-terraform"

on:
workflow_call:

runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Set environment variables
uses: ./.github/actions/setvars
with:
envVarFile: ./.env

- name: Setup Terraform tools
uses: cds-snc/terraform-tools-setup@v1
env: # In case you want to override default versions
CONFTEST_VERSION: 0.30.0
TERRAFORM_VERSION: 1.6.2
TERRAGRUNT_VERSION: 0.44.4
TF_SUMMARIZE_VERSION: 0.2.3
5 changes: 5 additions & 0 deletions .github/workflows/merge_to_main_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,9 @@ jobs:
- name: Apply aws/system_status_static_site
run: |
cd env/production/system_status_static_site
terragrunt apply --terragrunt-non-interactive -auto-approve
- name: Apply aws/newrelic
run: |
cd env/production/newrelic
terragrunt apply --terragrunt-non-interactive -auto-approve
Loading

0 comments on commit 51e93a5

Please sign in to comment.