diff options
| author | EuAndreh <eu@euandre.org> | 2019-05-26 19:41:18 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2019-05-26 19:44:05 -0300 |
| commit | cc2869d771f3c49acbb76cac9d75f2369667e298 (patch) | |
| tree | e05c3b70f70a8e9027d46f4aaf73ef4165322c8c /ci-setup.sh | |
| parent | Unlock with git-crypt in setup phase (diff) | |
| download | server-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-x | ci-setup.sh | 16 |
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 |
