Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/_update_terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ jobs:
- name: Conditionally update staging environment
if: ${{ (inputs.deployment_environment == 'staging') }}
run: |
./dockerize -template stage/services/client-api/_events.auto.tfvars.tmpl:stage/services/client-api/_events.auto.tfvars
git add stage/services/client-api/_events.auto.tfvars
./dockerize -template stage/services/events/_events.auto.tfvars.tmpl:stage/services/events/_events.auto.tfvars
git add stage/services/events/_events.auto.tfvars
git commit -m "Adding events git variables for commit ${{ github.sha }}"

- name: Conditionally update production/test environments
if: ${{ (inputs.deployment_environment == 'production') }}
run: |
./dockerize -template prod-eu-west/services/client-api/_events.auto.tfvars.tmpl:prod-eu-west/services/client-api/_events.auto.tfvars
./dockerize -template test/services/client-api/_events.auto.tfvars.tmpl:test/services/client-api/_events.auto.tfvars
./dockerize -template prod-eu-west/services/events/_events.auto.tfvars.tmpl:prod-eu-west/services/events/_events.auto.tfvars
./dockerize -template test/services/events/_events.auto.tfvars.tmpl:test/services/events/_events.auto.tfvars

git add prod-eu-west/services/client-api/_events.auto.tfvars
git add test/services/client-api/_events.auto.tfvars
git add prod-eu-west/services/events/_events.auto.tfvars
git add test/services/events/_events.auto.tfvars
git commit -m "Adding events git variables for tag ${{ inputs.image_tag }}"
- name: Push changes
uses: ad-m/github-push-action@v0.8.0
Expand Down