mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 08:04:20 +01:00
Output folder instead of tar.gz
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
1698a0cbc8
commit
f6b45a6506
12
flake.nix
12
flake.nix
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue