aboutsummaryrefslogtreecommitdiff
path: root/ci-setup.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-26 19:41:18 -0300
committerEuAndreh <eu@euandre.org>2019-05-26 19:44:05 -0300
commitcc2869d771f3c49acbb76cac9d75f2369667e298 (patch)
treee05c3b70f70a8e9027d46f4aaf73ef4165322c8c /ci-setup.sh
parentUnlock with git-crypt in setup phase (diff)
downloadserver-cc2869d771f3c49acbb76cac9d75f2369667e298.tar.gz
server-cc2869d771f3c49acbb76cac9d75f2369667e298.tar.xz
Prepare builds.sr.ht CI environment before running build tasks
Make content of .envrc available to subsequent build jobs.
Diffstat (limited to 'ci-setup.sh')
-rwxr-xr-xci-setup.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci-setup.sh b/ci-setup.sh
new file mode 100755
index 0000000..b6af3c7
--- /dev/null
+++ b/ci-setup.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+set -Eeuo pipefail
+cd "${BASH_SOURCE%/*}/"
+
+echo "Unlocking git-crypt repos..."
+git crypt unlock
+# Assumes vps-state was already cloned
+pushd ../vps-state/
+git crypt unlock
+popd
+echo "Done."
+
+cat .envrc >> ~/.buildenv
+
+source .envrc
+envsubst < ./ssh.conf >> ~/.ssh/config