mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
Run terraform on deploy when shared modules change
This commit is contained in:
@@ -20,7 +20,10 @@ jobs:
|
|||||||
id: changed-terraform-files
|
id: changed-terraform-files
|
||||||
uses: tj-actions/changed-files@v1.1.2
|
uses: tj-actions/changed-files@v1.1.2
|
||||||
with:
|
with:
|
||||||
files: terraform/demo
|
files: |
|
||||||
|
terraform/demo
|
||||||
|
terraform/shared
|
||||||
|
.github/workflows/deploy-demo.yml
|
||||||
- name: Terraform init
|
- name: Terraform init
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
||||||
working-directory: terraform/demo
|
working-directory: terraform/demo
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Deploy to prototype environment
|
name: Deploy to staging environment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
@@ -25,7 +25,10 @@ jobs:
|
|||||||
id: changed-terraform-files
|
id: changed-terraform-files
|
||||||
uses: tj-actions/changed-files@v1.1.2
|
uses: tj-actions/changed-files@v1.1.2
|
||||||
with:
|
with:
|
||||||
files: terraform/staging
|
files: |
|
||||||
|
terraform/staging
|
||||||
|
terraform/shared
|
||||||
|
.github/workflows/deploy.yml
|
||||||
- name: Terraform init
|
- name: Terraform init
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
||||||
working-directory: terraform/staging
|
working-directory: terraform/staging
|
||||||
|
|||||||
Reference in New Issue
Block a user