latex-packages/.ci/configure_git.sh

18 lines
511 B
Bash
Raw Normal View History

2022-01-30 21:36:18 +01:00
set -e
2021-10-24 11:23:20 +02:00
# Set up ssh private key
2021-10-24 11:23:20 +02:00
mkdir -p ~/.ssh
chmod 700 ~/.ssh
2023-10-18 16:03:51 +02:00
echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
# Set up remote host key fingerprint
2023-10-18 11:27:37 +02:00
echo "git.abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts
2021-10-24 11:23:20 +02:00
chmod 644 ~/.ssh/known_hosts
git config --global user.email "git@maximilian-kessler.de"
git config --global user.name "Maximilian Keßler (via gitlab runner)"
2023-10-19 02:47:45 +02:00
echo "Successfully added ssh deploy keys"