diff options
author | Julien Dessaux | 2024-09-20 23:48:15 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-09-20 23:48:57 +0200 |
commit | 364fdda5e7458b13ae7becaae25430a688350126 (patch) | |
tree | 04257f50a7c71422ccf39c5e2b00e058eb48f9bb /ods | |
parent | Reworked ODS job to handle the necessary git-crypt unlock (diff) | |
download | ev-scripts-364fdda5e7458b13ae7becaae25430a688350126.tar.gz ev-scripts-364fdda5e7458b13ae7becaae25430a688350126.tar.bz2 ev-scripts-364fdda5e7458b13ae7becaae25430a688350126.zip |
Removed ods management, git-crypt does not agree with my pipeline
Diffstat (limited to '')
-rw-r--r-- | ods/ods.sh | 26 | ||||
-rw-r--r-- | ods/ods.yaml | 22 |
2 files changed, 0 insertions, 48 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 diff --git a/ods/ods.yaml b/ods/ods.yaml deleted file mode 100644 index 5ed5ca8..0000000 --- a/ods/ods.yaml +++ /dev/null @@ -1,22 +0,0 @@ -identities: - - "gpg" - - "ssh" -name: "ods" -steps: - - label: "git clone" - script: - path: "../common/git-clone.sh" - arguments: - - "https://git.adyxax.org/adyxax/ods" - - label: "build and deploy" - script: - path: "./ods.sh" - - label: "clean" - script: - path: "../common/clean.sh" -runner: - identity: "ssh" - name: "ssh" - parameters: - host: "lore.adyxax.org" - user: "root" |