aboutsummaryrefslogtreecommitdiff
path: root/ci-setup.sh
blob: 3a84639b81c6b829c0e925678f07d96d6bb332af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env nix-shell
#!nix-shell -i 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