Commit 488331f8 authored by Emir's avatar Emir
Browse files

second attempt added known hosts

parent b072077c
Pipeline #81105 failed with stages
in 2 minutes and 20 seconds
......@@ -29,11 +29,12 @@ deploy:
stage: deploy
script:
- mkdir ~/.ssh
- echo "$known_hosts" > ~/.ssh/known_hosts
- touch ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa # Required permission by ssh
- echo "$key" > ~/.ssh/id_rsa
- apt update
- apt-get install --assume-yes rsync
- apt install --assume-yes rsync
- rsync --archive --delete --exclude='.git' --exclude='node_modules' . speed@35.228.31.13:app
- ssh speed@35.228.31.13 systemctl --user restart app
only:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment