latex-packages/.ci/configure_git.sh
Maximilian Keßler 1de88c00b8
Some checks failed
Build LaTeX packages / build (push) Failing after 50s
Build LaTeX packages / deploy-pages (push) Failing after 7s
rename deploy key variable
2023-10-18 09:56:35 +02:00

12 lines
340 B
Bash
Executable file

set -e
eval $(ssh-agent -s)
echo "$SSH_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan gitlab.com >> ~/.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)"