summaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/update.sh b/update.sh
new file mode 100755
index 0000000..da1a763
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+set -e
+
+./ssh_setup.sh
+
+git config --global user.email "msci@toufy.me"
+git config --global user.name "makeshiftci"
+
+nix-channel --update
+
+nix --extra-experimental-features "nix-command flakes" flake update
+
+git diff --exit-code flake.lock && exit 0
+git add .
+git commit -m "update flake.lock"
+git push ssh://git@git.toufy.me:servers