blob: d876df73fa81efd9c153bb262b3a413876082505 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env nix-shell
#!nix-shell -i bash ../../shell.nix
# shellcheck shell=bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../../
echo "Unlocking git-crypt repos..."
git crypt unlock
# Assumes vps-state was already cloned
pushd ../vps-state/
git crypt unlock
git remote set-url origin git@git.sr.ht:~euandreh/vps-state
popd
# git smudge after git-crypt clears file permissions
chmod 400 ./secrets/ssh/vps-box-client
echo "Done."
echo "cd ./vps/ && source .envrc && cd ../" >> ~/.buildenv
source .envrc
git config --global user.email "${GIT_CI_USER}"
git config --global user.name "sr.ht CI"
curl https://euandre.org/public-key.txt | gpg --import
|