change setting up git: don't use agent, directly write to ~/.ssh
Some checks failed
Build LaTeX packages / build (push) Failing after 30s
Build LaTeX packages / deploy-pages (push) Has been skipped

This commit is contained in:
Maximilian Keßler 2023-10-18 16:01:37 +02:00
parent e8fedd07a0
commit 3858718041
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -1,10 +1,11 @@
set -e
eval $(ssh-agent -s)
echo "$DEPLOY_SSH_KEY" | tr -d '\r' | ssh-add - > /dev/null
# 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