This commit is contained in:
parent
adc4007546
commit
5354694a14
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue