fix known_hosts issue
Some checks failed
Deploy Gateway / deploy (push) Failing after 2s

This commit is contained in:
Ida 2026-04-20 19:58:06 +02:00
parent adc4007546
commit 5354694a14

View file

@ -16,11 +16,12 @@ jobs:
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no ubuntu@api.poweron.swiss "
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config
ssh -i ~/.ssh/deploy_key ubuntu@api.poweron.swiss "
cd /srv/gateway/current &&
git pull &&
source .venv/bin/activate &&
pip install -r requirements.txt --no-cache-dir &&
sudo systemctl restart gateway
"