new git-hooks based deployment
This commit is contained in:
parent
e65718178e
commit
a8e9884c3c
5 changed files with 85 additions and 80 deletions
16
README.md
16
README.md
|
|
@ -6,4 +6,20 @@ Declaratively keep your stuff up to date in your nixos config.
|
|||
|
||||
## Usage
|
||||
```nix
|
||||
services.fooud = {
|
||||
enable = true;
|
||||
repos = [
|
||||
{
|
||||
path = "/full/path/to/your/repo.git";
|
||||
hooks = [
|
||||
pkgs.writeScriptBin "post-recieve" ''
|
||||
git clone . /var/www/your/deployed/location
|
||||
'';
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
```
|
||||
|
||||
# TODO
|
||||
- [ ] add support for non-git files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue