mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-11 17:50:06 +01:00
fix(CI): turns out buildah does not accept more than 1 image argument
This commit is contained in:
parent
aebad80568
commit
e065b2416c
1 changed files with 16 additions and 10 deletions
26
flake.nix
26
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
|
||||
''
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue