dockerTools.pullImage: expose image* attributes (#41366)

Attributes `imageName` and `imageTag` are exposed if the image is
built by our Nix tools but not if the image is pulled. So, we expose
these attributes for convenience and homogeneity.
This commit is contained in:
lewo 2018-06-03 22:58:23 +02:00 committed by xeji
parent 332b9dedc8
commit 0644b4d948

View File

@ -47,6 +47,8 @@ rec {
}:
runCommand name {
inherit imageName imageDigest;
imageTag = finalImageTag;
impureEnvVars = pkgs.stdenv.lib.fetchers.proxyImpureEnvVars;
outputHashMode = "flat";
outputHashAlgo = "sha256";