summaryrefslogtreecommitdiffstats
path: root/deploy.sh
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-03-31 16:05:15 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2024-03-31 16:05:15 +0300
commit7eb044672595946e0b360ff57128dad50892a2ee (patch)
tree74b73170ae8cb3afefeecbde0ec65f61b5f7a7a6 /deploy.sh
parentbb78febbbd6c54c91216df0714b54c2f418358ec (diff)
Remove .html suffix from archive links, add deploy.sh
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..2f6a403
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -euxo pipefail
+
+IMAGE=registry.jan.systems/jan-systems-2024:latest
+
+# Build
+docker build --platform linux/amd64 -t "$IMAGE" .
+docker push "$IMAGE"
+
+# Deploy
+ssh jan.systems 'cd deployments/garden && bash dc-restart.sh'
+