Skip to content

Commit

Permalink
fix: extra_args not expanded properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jdassonvil committed Mar 20, 2024
1 parent f7c4674 commit fb089c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ecs-deploy-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ jobs:
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Terraform apply
run: terraform apply -var "docker_image_tag=${DOCKER_IMAGE_TAG}" -var-file="${ENV}.tfvars" -auto-approve -input=false "${EXTRA_ARGS}"
run: |
# shellcheck disable=SC2086
terraform apply -var "docker_image_tag=${DOCKER_IMAGE_TAG}" -var-file="${ENV}.tfvars" -auto-approve -input=false ${EXTRA_ARGS}
- name: Wait for stabilization
if: ${{ inputs.wait_for_stabilization }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/terraform-apply-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ jobs:
run: terraform validate

- name: Terraform apply
run: terraform apply -var-file="${ENV}.tfvars" -auto-approve -input=false "${EXTRA_ARGS}"
run: |
# shellcheck disable=SC2086
terraform apply -var-file="${ENV}.tfvars" -auto-approve -input=false ${EXTRA_ARGS}
4 changes: 3 additions & 1 deletion .github/workflows/terraform-plan-ecs-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ jobs:
# inspired by https://blog.testdouble.com/posts/2021-12-07-elevate-your-terraform-workflow-with-github-actions/
- name: Terraform plan
id: plan
run: terraform plan -var docker_image_tag="${REF}" -var-file="${ENV}.tfvars" -input=false -no-color -out=tfplan "${EXTRA_ARGS}"
run: |
# shellcheck disable=SC2086
terraform plan -var docker_image_tag="${REF}" -var-file="${ENV}.tfvars" -input=false -no-color -out=tfplan ${EXTRA_ARGS}
# 1. remove everything before the plan output
# 2. remove github actions output
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/terraform-plan-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ jobs:
# inspired by https://blog.testdouble.com/posts/2021-12-07-elevate-your-terraform-workflow-with-github-actions/
- name: Terraform plan
id: plan
run: terraform plan -var-file="${ENV}.tfvars" -input=false -no-color -out=tfplan "${EXTRA_ARGS}"
run: |
# shellcheck disable=SC2086
terraform plan -var-file="${ENV}.tfvars" -input=false -no-color -out=tfplan ${EXTRA_ARGS}
# 1. remove everything before the plan output
# 2. remove github actions output
Expand Down

0 comments on commit fb089c4

Please sign in to comment.