From cfed6fc2ed89720498ce57d94a8efae7ff8fbcd2 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Wed, 2 Oct 2024 11:11:52 +0200 Subject: [PATCH] Try different ssh config --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d75d611..387dafe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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