We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e698950 + 8de64dd commit de8d9f6Copy full SHA for de8d9f6
.github/workflows/deploy-infrastructure.yml
@@ -156,8 +156,8 @@ jobs:
156
terraform init -backend-config="env/${{ inputs.environment }}-backend.hcl" -upgrade
157
terraform plan -var="image_digest=$DIGEST" -var="app_version=${{ env.git_ref_to_deploy }}" \
158
-var-file="env/${{ inputs.environment }}.tfvars" \
159
- -out ${{ runner.temp }}/tfplan &> ${{ runner.temp }}/tf_stdout
160
- TF_EXIT_CODE=$?
+ -out ${{ runner.temp }}/tfplan | tee ${{ runner.temp }}/tf_stdout
+ TF_EXIT_CODE=${PIPESTATUS[0]}
161
cat ${{ runner.temp }}/tf_stdout
162
if [ $TF_EXIT_CODE -eq 1 ]; then
163
exit $TF_EXIT_CODE
0 commit comments