1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

chore(terraformExecute): set TF_IN_AUTOMATION env var (#3224)

* chore(terraformExecute): set TF_IN_AUTOMATION env var

* cleanup

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
Christian Volk 2021-10-28 16:55:43 +02:00 committed by GitHub
parent e041f84f2f
commit 88bd8f1303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -169,7 +169,7 @@ func terraformExecuteMetadata() config.StepData {
},
},
Containers: []config.Container{
{Name: "terraform", Image: "hashicorp/terraform:0.14.7", Options: []config.Option{{Name: "--entrypoint", Value: ""}}},
{Name: "terraform", Image: "hashicorp/terraform:0.14.7", EnvVars: []config.EnvVar{{Name: "TF_IN_AUTOMATION", Value: "piper"}}, Options: []config.Option{{Name: "--entrypoint", Value: ""}}},
},
},
}

View File

@ -41,3 +41,6 @@ spec:
options:
- name: --entrypoint
value: ''
env:
- name: TF_IN_AUTOMATION
value: piper