aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index 76df2d8..c67baee 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,12 +1,14 @@
#!/bin/bash
+# Use e.g. `direnv` to set the DIDDLE_ variables
+
set -euxo pipefail
-IMAGE=registry.jan.systems/diddle:latest
+IMAGE=${DIDDLE_OCI_REGISTRY}/diddle:latest
# Build
docker build --progress plain --platform linux/amd64 -t "$IMAGE" .
docker push "$IMAGE"
# Deploy
-ssh jan.systems 'cd deployments/diddle && bash dc-restart.sh'
+ssh "${DIDDLE_SSH_SERVER}" "${DIDDLE_UPDATE_COMMAND}"