From e065b2416c911baf9038752930e0aa329f15b091 Mon Sep 17 00:00:00 2001 From: technofab Date: Wed, 24 Apr 2024 22:58:06 +0200 Subject: [PATCH] fix(CI): turns out buildah does not accept more than 1 image argument --- flake.nix | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index d55f7ec..2673360 100644 --- a/flake.nix +++ b/flake.nix @@ -129,16 +129,22 @@ '' ''mkdir -p /var/tmp'' ]; - script = [ - (lib.concatStringsSep " " ( - ["buildah manifest create localhost/nix-coder-image"] - ++ builtins.map (sys: "docker-archive:dist/nix-coder-image_${sys}.tar.gz ") SYSTEMS - )) - '' - buildah manifest push --all localhost/nix-coder-image \ - docker://''${CI_REGISTRY_IMAGE}/nix-coder-image:$CI_COMMIT_SHORT_SHA - '' - ]; + script = + [ + ''buildah manifest create localhost/nix-coder-image'' + ] + ++ ( + builtins.map (sys: '' + buildah manifest add localhost/nix-coder-image docker-archive:dist/nix-coder-image_${sys}.tar.gz + '') + SYSTEMS + ) + ++ [ + '' + buildah manifest push --all localhost/nix-coder-image \ + docker://''${CI_REGISTRY_IMAGE}/nix-coder-image:$CI_COMMIT_SHORT_SHA + '' + ]; }; }; };