mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-29 22:51:11 +03:00
arion-base: buildLayeredImage -> buildImage to avoid build error
buildLayeredImage doesn't work when the number of nix store layers is 0. This may be fixed by pull https://github.com/NixOS/nixpkgs/pull/80921/files but meanwhile, plain buildImage will do the job.
This commit is contained in:
parent
77b89cb424
commit
1778d76117
@ -10,7 +10,7 @@ let
|
|||||||
tag = lib.head (lib.strings.splitString "-" (baseNameOf builtImage.outPath));
|
tag = lib.head (lib.strings.splitString "-" (baseNameOf builtImage.outPath));
|
||||||
name = "arion-base";
|
name = "arion-base";
|
||||||
|
|
||||||
builtImage = pkgs.dockerTools.buildLayeredImage {
|
builtImage = pkgs.dockerTools.buildImage {
|
||||||
inherit name;
|
inherit name;
|
||||||
contents = pkgs.runCommand "minimal-contents" {} ''
|
contents = pkgs.runCommand "minimal-contents" {} ''
|
||||||
mkdir -p $out/bin $out/usr/bin
|
mkdir -p $out/bin $out/usr/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user