mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Only deploy egress proxy if the config changed
This commit is contained in:
8
.github/workflows/deploy-demo.yml
vendored
8
.github/workflows/deploy-demo.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check for changes to Terraform
|
- name: Check for changes to Terraform
|
||||||
id: changed-terraform-files
|
id: changed-terraform-files
|
||||||
uses: tj-actions/changed-files@v1.1.2
|
uses: tj-actions/changed-files@v34
|
||||||
with:
|
with:
|
||||||
files: terraform/demo
|
files: terraform/demo
|
||||||
- name: Terraform init
|
- name: Terraform init
|
||||||
@@ -66,7 +66,13 @@ jobs:
|
|||||||
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID"
|
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID"
|
||||||
--var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY"
|
--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
|
- name: Deploy egress proxy
|
||||||
|
if: steps.changed-egress-config.outputs.any_changed == 'true'
|
||||||
uses: ./.github/actions/deploy-proxy
|
uses: ./.github/actions/deploy-proxy
|
||||||
with:
|
with:
|
||||||
cf_space: notify-demo
|
cf_space: notify-demo
|
||||||
|
|||||||
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check for changes to Terraform
|
- name: Check for changes to Terraform
|
||||||
id: changed-terraform-files
|
id: changed-terraform-files
|
||||||
uses: tj-actions/changed-files@v1.1.2
|
uses: tj-actions/changed-files@v34
|
||||||
with:
|
with:
|
||||||
files: terraform/staging
|
files: terraform/staging
|
||||||
- name: Terraform init
|
- name: Terraform init
|
||||||
@@ -71,7 +71,13 @@ jobs:
|
|||||||
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID"
|
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID"
|
||||||
--var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY"
|
--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
|
- name: Deploy egress proxy
|
||||||
|
if: steps.changed-egress-config.outputs.any_changed == 'true'
|
||||||
uses: ./.github/actions/deploy-proxy
|
uses: ./.github/actions/deploy-proxy
|
||||||
with:
|
with:
|
||||||
cf_space: notify-staging
|
cf_space: notify-staging
|
||||||
|
|||||||
Reference in New Issue
Block a user