mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +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
16
flake.nix
16
flake.nix
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue