aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/setup.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-28 20:32:45 -0300
committerEuAndreh <eu@euandre.org>2019-05-28 20:32:45 -0300
commit05ad7e4591164d6dd9160f59156eddfec613e537 (patch)
tree0ef071aeb8e7f60a21ecbe48b24da81ae0f759db /scripts/ci/setup.sh
parentUse SSH to fetch vps-state so we can push to it later (diff)
downloadserver-05ad7e4591164d6dd9160f59156eddfec613e537.tar.gz
server-05ad7e4591164d6dd9160f59156eddfec613e537.tar.xz
Configure git for vps-state repo in ./scripts/ci/setup.sh
Diffstat (limited to 'scripts/ci/setup.sh')
-rwxr-xr-xscripts/ci/setup.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/ci/setup.sh b/scripts/ci/setup.sh
index de8a165..ee5ecf2 100755
--- a/scripts/ci/setup.sh
+++ b/scripts/ci/setup.sh
@@ -5,11 +5,15 @@ set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../../
-echo "Unlocking git-crypt repos..."
+echo "Unlocking git-crypt repos and configuring git..."
+git config --global user.email "ci@euandre.org"
+git config --global user.name "sr.ht CI"
+
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
echo "Done."