aboutsummaryrefslogtreecommitdiff
path: root/ods/ods.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ods/ods.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/ods/ods.sh b/ods/ods.sh
deleted file mode 100644
index a71e02e..0000000
--- a/ods/ods.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-WORKDIR="/tmp/${EVENTLINE_JOB_NAME}"
-
-cleanup() {
- rm -rf "${WORKDIR}"
-}
-
-trap cleanup EXIT
-
-cd "${WORKDIR}"
-git-crypt unlock "${EVENTLINE_DIR}/identities/gpg/private_key"
-
-podman run --rm -ti -v "${WORKDIR}:/mnt" \
- --entrypoint "/bin/sh" \
- localhost/ods:latest \
- /bin/cp /usr/local/bin/ods /mnt/
-
-SSHKEY="${EVENTLINE_DIR}/identities/ssh/private_key"
-SSHOPTS="-i ${SSHKEY} -o StrictHostKeyChecking=accept-new"
-
-rsync -e "ssh ${SSHOPTS}" "${WORKDIR}/ods" root@ods.adyxax.org:/srv/ods/
-ssh root@ods.adyxax.org "systemctl restart ods"
-
-trap - EXIT