Try different ssh config

This commit is contained in:
Florian Hoss 2024-10-02 11:11:52 +02:00
parent f0b6b4915e
commit cfed6fc2ed
Signed by: flohoss
GPG key ID: 3F35C7F6E6F66F6B

View file

@ -55,7 +55,7 @@ publish:
stage: publish
script:
- mkdir -p ~/.ssh
- cp "$SSH_PRIVATE_KEY" ~/.ssh/bot
- cp $SSH_PRIVATE_KEY ~/.ssh/bot
- chmod 600 ~/.ssh/bot
- ssh-keyscan -H ${SERVER} >> ~/.ssh/known_hosts
- ssh -i ~/.ssh/bot flohoss@${SERVER} "cd /opt/docker/home && docker compose pull && docker compose up -d"
- ssh-keyscan -H $SERVER >> ~/.ssh/known_hosts
- ssh -i ~/.ssh/bot ${SSH_USER}@${SERVER} $SSH_COMMAND