mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
replace plus sign (#4656)
Co-authored-by: Gulom Alimov <gulomjon.alimov@sap.com>
This commit is contained in:
parent
26bfec19b3
commit
68d034992f
@ -274,8 +274,11 @@ func runKanikoExecute(config *kanikoExecuteOptions, telemetryData *telemetry.Cus
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Docker image tags don't allow plus signs in tags, thus replacing with dash
|
||||||
|
containerImageTag := strings.ReplaceAll(config.ContainerImageTag, "+", "-")
|
||||||
|
|
||||||
// for compatibility reasons also fill single imageNameTag field with "root" image in commonPipelineEnvironment
|
// for compatibility reasons also fill single imageNameTag field with "root" image in commonPipelineEnvironment
|
||||||
containerImageNameAndTag := fmt.Sprintf("%v:%v", config.ContainerImageName, config.ContainerImageTag)
|
containerImageNameAndTag := fmt.Sprintf("%v:%v", config.ContainerImageName, containerImageTag)
|
||||||
commonPipelineEnvironment.container.imageNameTag = containerImageNameAndTag
|
commonPipelineEnvironment.container.imageNameTag = containerImageNameAndTag
|
||||||
commonPipelineEnvironment.container.registryURL = config.ContainerRegistryURL
|
commonPipelineEnvironment.container.registryURL = config.ContainerRegistryURL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user