nix/packages/forgejo-actions-container.nix
Daniel Flanagan 4f96a415f0
Some checks failed
/ check (push) Has been cancelled
feat: do CI builds in podman
2025-03-19 15:51:45 -05:00

23 lines
544 B
Nix

{
nodejs_23,
nix,
dockerTools,
}:
let
pname = "forgejo-actions-container";
in
# bootstrap this into the forgejo server with
# $ podman login ${FORGEJO_ENDPOINT:-git.lyte.dev}
# $ podman image load -i (nix build .#forgejo-actions-container --print-out-paths)
# $ podman image push git.lyte.dev/lytedev/nix:forgejo-actions-container-$NIX_VERSION
dockerTools.buildLayeredImage {
name = "git.lyte.dev/lytedev/nix";
tag = "${pname}-${nix.version}";
config = {
Cmd = [ "/bin/nix" ];
};
contents = [
nix
nodejs_23
];
}