latex-packages/.ci/configure_git.sh
Maximilian Keßler 3858718041
Some checks failed
Build LaTeX packages / build (push) Failing after 30s
Build LaTeX packages / deploy-pages (push) Has been skipped
change setting up git: don't use agent, directly write to ~/.ssh
2023-10-18 16:01:37 +02:00

13 lines
439 B
Bash
Executable file

set -e
# Set up ssh private key
echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
mkdir -p ~/.ssh
chmod 700 ~/.ssh
# Set up remote host key fingerprint
echo "git.abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts
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)"