feat: mark the minimal image as minimal and extend the defualt one
This commit is contained in:
parent
26b0e92539
commit
93b71cbbc5
2 changed files with 30 additions and 14 deletions
33
flake.nix
33
flake.nix
|
|
@ -6,16 +6,31 @@
|
|||
};
|
||||
outputs = { nixpkgs, nix, self }:
|
||||
let pkgs = import nixpkgs { system = "x86_64-linux"; }; in {
|
||||
packages.x86_64-linux.default = import (nix + "/docker.nix") {
|
||||
inherit pkgs;
|
||||
extraPkgs = [ pkgs.nodejs ];
|
||||
packages.x86_64-linux = rec {
|
||||
default = nix;
|
||||
minimal-nix = import (nix + "/docker.nix") {
|
||||
inherit pkgs;
|
||||
extraPkgs = [ pkgs.nodejs ];
|
||||
|
||||
Labels = {
|
||||
"org.opencontainers.image.title" = "Nix";
|
||||
"org.opencontainers.image.source" = "https://git.tami.moe/tamipes/";
|
||||
"org.opencontainers.image.vendor" = "Tamipes";
|
||||
"org.opencontainers.image.version" = pkgs.nix.version;
|
||||
"org.opencontainers.image.description" = "Nix container image with nodejs";
|
||||
Labels = {
|
||||
"org.opencontainers.image.title" = "Nix (minimal)";
|
||||
"org.opencontainers.image.source" = "https://git.tami.moe/tamipes/forgejo-actions";
|
||||
"org.opencontainers.image.vendor" = "Tamipes";
|
||||
"org.opencontainers.image.version" = pkgs.nix.version;
|
||||
"org.opencontainers.image.description" = "Nix container image with nodejs";
|
||||
};
|
||||
};
|
||||
nix = import (nix + "/docker.nix") {
|
||||
inherit pkgs;
|
||||
extraPkgs = [ pkgs.nodejs pkgs.skopeo ];
|
||||
|
||||
Labels = {
|
||||
"org.opencontainers.image.title" = "Nix";
|
||||
"org.opencontainers.image.source" = "https://git.tami.moe/tamipes/forgejo-actions";
|
||||
"org.opencontainers.image.vendor" = "Tamipes";
|
||||
"org.opencontainers.image.version" = pkgs.nix.version;
|
||||
"org.opencontainers.image.description" = "Nix container image with more cli tools";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue