Make docker image downloadable in Hydra UI

This commit is contained in:
Rok Garbas 2021-11-23 11:31:05 +01:00
parent dbfcaa607a
commit cd72a8c346
No known key found for this signature in database
GPG key ID: A0E01EF44C27BF00

View file

@ -407,10 +407,18 @@
# docker image with Nix inside
dockerImage = nixpkgs.lib.genAttrs linux64BitSystems (system:
import ./docker.nix {
let
pkgs = nixpkgsFor.${system};
tag = version;
});
image = import ./docker.nix { inherit pkgs; tag = version; };
in pkgs.runCommand "docker-image-tarball-${version}"
{ meta.description = "Docker image with Nix for ${system}";
}
''
mkdir -p $out/nix-support
image=$out/image.tar.gz
cp ${image} $image
echo "file binary-dist $image" >> $out/nix-support/hydra-build-products
'');
# Line coverage analysis.
coverage =