dockerTools: Do not lowercase image tag in buildImage

Closes #115455
This commit is contained in:
Chris Roberts 2021-03-09 09:06:04 +00:00
parent 0b9ccb57fc
commit 00996b5e03

View File

@ -518,9 +518,9 @@ rec {
};
result = runCommand "docker-image-${baseName}.tar.gz" {
nativeBuildInputs = [ jshon pigz coreutils findutils jq moreutils ];
# Image name and tag must be lowercase
# Image name must be lowercase
imageName = lib.toLower name;
imageTag = if tag == null then "" else lib.toLower tag;
imageTag = if tag == null then "" else tag;
inherit fromImage baseJson;
layerClosure = writeReferencesToFile layer;
passthru.buildArgs = args;