Output folder instead of tar.gz

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2021-08-27 16:13:06 +02:00
parent 1698a0cbc8
commit f6b45a6506
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -36,11 +36,13 @@
pkgs.runCommandNoCCLocal "${container.stream.imageName}-hydra-job"
{}
''
mkdir -p $out/nix-support
ln -s ${container.build} $out/image.tar.gz
ln -s ${container.stream} $out/stream
echo "file docker-image $out/image.tar.gz" >> $out/nix-support/hydra-build-products
echo "file image-stream $out/stream" >> $out/nix-support/hydra-build-products
mkdir -p $out/nix-support $out/image
${container.stream} | tar -xf - -C $out/image
for img in $out/image/*/*.tar ; do
gzip $img
done
echo "directory docker-image $out/image" >> $out/nix-support/hydra-build-products
'';
in
{