Try different ssh config
This commit is contained in:
parent
f0b6b4915e
commit
cfed6fc2ed
1 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ publish:
|
||||||
stage: publish
|
stage: publish
|
||||||
script:
|
script:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- cp "$SSH_PRIVATE_KEY" ~/.ssh/bot
|
- cp $SSH_PRIVATE_KEY ~/.ssh/bot
|
||||||
- chmod 600 ~/.ssh/bot
|
- chmod 600 ~/.ssh/bot
|
||||||
- ssh-keyscan -H ${SERVER} >> ~/.ssh/known_hosts
|
- 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 -i ~/.ssh/bot ${SSH_USER}@${SERVER} $SSH_COMMAND
|
||||||
|
|
Loading…
Reference in a new issue