auto commit on build
Makefile
This commit is contained in:
parent
f1860b7160
commit
a0c5ca19bc
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -8,8 +8,10 @@ endif
|
|||
ifeq ($(HOST),)
|
||||
$(error HOST not set)
|
||||
endif
|
||||
ifneq (`git diff`,)
|
||||
git add .
|
||||
git commit -m "auto commit on build" -m "`PAGER=cat git diff --name-only --cached`"
|
||||
endif
|
||||
rsync -azr ./ crown@$(IP):~/flake-config
|
||||
ssh crown@$(IP) "sudo nixos-rebuild switch --flake ~/flake-config#$(HOST)"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue