fix(CI): turns out buildah does not accept more than 1 image argument

This commit is contained in:
technofab 2024-04-24 22:58:06 +02:00
parent aebad80568
commit e065b2416c

View file

@ -129,11 +129,17 @@
'' ''
''mkdir -p /var/tmp'' ''mkdir -p /var/tmp''
]; ];
script = [ script =
(lib.concatStringsSep " " ( [
["buildah manifest create localhost/nix-coder-image"] ''buildah manifest create localhost/nix-coder-image''
++ builtins.map (sys: "docker-archive:dist/nix-coder-image_${sys}.tar.gz ") SYSTEMS ]
)) ++ (
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 \ buildah manifest push --all localhost/nix-coder-image \
docker://''${CI_REGISTRY_IMAGE}/nix-coder-image:$CI_COMMIT_SHORT_SHA docker://''${CI_REGISTRY_IMAGE}/nix-coder-image:$CI_COMMIT_SHORT_SHA