diff --git a/README.md b/README.md new file mode 100644 index 0000000..4ddd454 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Container-images + +Container images we build for our home lab. + +## Releasing + +To build and push a new image version to image registry, run the following command. +Note you cannot have uncommited changes in the Git repository. + +``` +nix run .#packages.x86_64-linux.release .#packages.x86_64-linux. +``` diff --git a/forgejo-nix-action.nix b/forgejo-nix-action.nix index a6fadc1..49e65df 100644 --- a/forgejo-nix-action.nix +++ b/forgejo-nix-action.nix @@ -15,10 +15,17 @@ in name = "forgejo-nix-action"; tag = "latest"; fromImage = nixFromDockerHub; + copyToRoot = pkgs.buildEnv { name = "image-root"; paths = [ pkgs.coreutils pkgs.attic-client ]; pathsToLink = [ "/bin" ]; }; + + config = { + env = [ + "PATH=/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin" + ]; + }; }; })