aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.sh
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-12-21 19:28:26 +0200
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commita922035367b64429facb16ac824a2bbaf3839116 (patch)
tree35322c038e55def8b3832d6dd665ed32aa719b3f /deploy.sh
parentc5e9b5e0dc248b8c276aef6d4053cfd1bd05b38f (diff)
Remove refs to personal infra from deploy.sh
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}"