Add /bin to PATH in forgejo nix image

Add release instructions
This commit is contained in:
Pim Kunis 2024-04-27 22:38:01 +02:00
parent d7d4d7b0a9
commit 0fe83c1f24
2 changed files with 19 additions and 0 deletions

12
README.md Normal file
View file

@ -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.<name> <name>
```

View file

@ -15,10 +15,17 @@ in
name = "forgejo-nix-action"; name = "forgejo-nix-action";
tag = "latest"; tag = "latest";
fromImage = nixFromDockerHub; fromImage = nixFromDockerHub;
copyToRoot = pkgs.buildEnv { copyToRoot = pkgs.buildEnv {
name = "image-root"; name = "image-root";
paths = [ pkgs.coreutils pkgs.attic-client ]; paths = [ pkgs.coreutils pkgs.attic-client ];
pathsToLink = [ "/bin" ]; pathsToLink = [ "/bin" ];
}; };
config = {
env = [
"PATH=/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin"
];
};
}; };
}) })