move website deploy to box
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
pkgs.deploy
|
||||
];
|
||||
script = ''
|
||||
cd /etc/nixos/ # TODO make variable
|
||||
cd /home/anish/usr/helm/
|
||||
git pull
|
||||
nix flake lock --update-input poonam
|
||||
nix flake lock --update-input basant
|
||||
# TODO
|
||||
# git add flake.lock
|
||||
# git commit -m "update website"
|
||||
# git push
|
||||
git add flake.lock
|
||||
git diff-index --quiet HEAD || git commit -m 'updating website' # if nothing, don't exit 1
|
||||
git push
|
||||
deploy .#cube
|
||||
exit 0
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user