build push-container into image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0a71dd39a3
commit
26bac0b55b
1 changed files with 19 additions and 9 deletions
28
flake.nix
28
flake.nix
|
@ -39,6 +39,8 @@
|
||||||
pkgs.nushell
|
pkgs.nushell
|
||||||
pkgs.podman
|
pkgs.podman
|
||||||
pkgs.stdenv.cc.cc.lib
|
pkgs.stdenv.cc.cc.lib
|
||||||
|
|
||||||
|
self.packages.${system}.push-container
|
||||||
];
|
];
|
||||||
|
|
||||||
flake-registry = null;
|
flake-registry = null;
|
||||||
|
@ -365,19 +367,27 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
push-container = pkgs.writeTextFile {
|
||||||
|
name = "push-container";
|
||||||
|
destination = "/bin/push-container";
|
||||||
|
text = lib.concatStringsSep "\n" [
|
||||||
|
"#!${pkgs.nushell}/bin/nu"
|
||||||
|
(builtins.readFile ./push-container.nu)
|
||||||
|
];
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
apps = {
|
apps = {
|
||||||
push-container =
|
push-container =
|
||||||
let
|
let
|
||||||
script = pkgs.writeTextFile
|
script = pkgs.writeTextFile {
|
||||||
{
|
name = "push-container";
|
||||||
name = "push-container";
|
text = lib.concatStringsSep "\n" [
|
||||||
text = lib.concatStringsSep "\n" [
|
"#!${pkgs.nushell}/bin/nu"
|
||||||
"#!${pkgs.nushell}/bin/nu"
|
(builtins.readFile ./push-container.nu)
|
||||||
(builtins.readFile ./push-container.nu)
|
];
|
||||||
];
|
executable = true;
|
||||||
executable = true;
|
};
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
type = "app";
|
type = "app";
|
||||||
|
|
Loading…
Reference in a new issue