1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

fix: add kaniko env var for container detection (#3157)

* add kaniko env var

* Rename kaniko.yaml to kanikoExecute.yaml

* update generated files
This commit is contained in:
Christopher Fenner
2021-12-07 08:38:53 +01:00
committed by GitHub
parent 9a78fabc89
commit b9eb48c149
2 changed files with 5 additions and 2 deletions

View File

@@ -302,7 +302,7 @@ func kanikoExecuteMetadata() config.StepData {
},
},
Containers: []config.Container{
{Image: "gcr.io/kaniko-project/executor:debug", Options: []config.Option{{Name: "-u", Value: "0"}, {Name: "--entrypoint", Value: ""}}},
{Image: "gcr.io/kaniko-project/executor:debug", EnvVars: []config.EnvVar{{Name: "container", Value: "docker"}}, Options: []config.Option{{Name: "-u", Value: "0"}, {Name: "--entrypoint", Value: ""}}},
},
Outputs: config.StepOutputs{
Resources: []config.StepResources{

View File

@@ -129,4 +129,7 @@ spec:
- name: -u
value: "0"
- name: --entrypoint
value: ''
value: ""
env:
- name: container
value: docker