about summary refs log tree commit diff
path: root/users/fcuny/blog/scripts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-01 13:35:46 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-01 13:35:46 -0700
commit5f41fd8b8b7cc2db152d4c353ce7da4c75e2dcf2 (patch)
treea0ce881de5ed91a24d6fb4fad6ffbca0ef581c9c /users/fcuny/blog/scripts
parentlayout: improve readability and remove /notes (diff)
downloadworld-5f41fd8b8b7cc2db152d4c353ce7da4c75e2dcf2.tar.gz
build: slowly moving to nix
Add a `flake.nix' configuration to pull the required dependencies and
run the server.

Remove a few targets from the Makefile and move the deployment part to a
script.
Diffstat (limited to 'users/fcuny/blog/scripts')
-rwxr-xr-xusers/fcuny/blog/scripts/deploy.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/fcuny/blog/scripts/deploy.sh b/users/fcuny/blog/scripts/deploy.sh
new file mode 100755
index 0000000..82919c6
--- /dev/null
+++ b/users/fcuny/blog/scripts/deploy.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+git diff --exit-code
+git diff --staged --exit-code
+
+VERSION=$(flyctl info -j |jq -r '.App | "fcuny.net/v\(.Version)"')
+
+git tag -a --message ${VERSION} ${VERSION}
+git push origin --all
+git push origin --tags