diff options
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/ci/templates/Terraform.gitlab-ci.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitlab/ci/templates/Terraform.gitlab-ci.yml b/lib/gitlab/ci/templates/Terraform.gitlab-ci.yml index dc70b977452..83483108fde 100644 --- a/lib/gitlab/ci/templates/Terraform.gitlab-ci.yml +++ b/lib/gitlab/ci/templates/Terraform.gitlab-ci.yml @@ -12,6 +12,7 @@ image: # Default output file for Terraform plan variables: PLAN: plan.tfplan + JSON_PLAN_FILE: tfplan.json cache: paths: @@ -37,11 +38,13 @@ plan: stage: build script: - terraform plan -out=$PLAN - - "terraform show --json $PLAN | convert_report > tfplan.json" + - "terraform show --json $PLAN | convert_report > $JSON_PLAN_FILE" artifacts: name: plan paths: - $PLAN + reports: + terraform: $JSON_PLAN_FILE # Separate apply job for manual launching Terraform as it can be destructive # action. |