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