Only deploy egress proxy if the config changed

This commit is contained in:
Ryan Ahearn
2022-11-08 16:11:15 -05:00
parent 2c140409df
commit 82847d3f71
2 changed files with 14 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ jobs:
- name: Check for changes to Terraform
id: changed-terraform-files
uses: tj-actions/changed-files@v1.1.2
uses: tj-actions/changed-files@v34
with:
files: terraform/demo
- name: Terraform init
@@ -66,7 +66,13 @@ jobs:
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID"
--var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY"
- name: Check for changes to egress config
id: changed-egress-config
uses: tj-actions/changed-files@v34
with:
files: deploy-config/egress_proxy/notify-api-demo.*.acl
- name: Deploy egress proxy
if: steps.changed-egress-config.outputs.any_changed == 'true'
uses: ./.github/actions/deploy-proxy
with:
cf_space: notify-demo

View File

@@ -23,7 +23,7 @@ jobs:
- name: Check for changes to Terraform
id: changed-terraform-files
uses: tj-actions/changed-files@v1.1.2
uses: tj-actions/changed-files@v34
with:
files: terraform/staging
- name: Terraform init
@@ -71,7 +71,13 @@ jobs:
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID"
--var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY"
- name: Check for changes to egress config
id: changed-egress-config
uses: tj-actions/changed-files@v34
with:
files: deploy-config/egress_proxy/notify-api-staging.*.acl
- name: Deploy egress proxy
if: steps.changed-egress-config.outputs.any_changed == 'true'
uses: ./.github/actions/deploy-proxy
with:
cf_space: notify-staging