Skip to content
Snippets Groups Projects
Commit 4b4c5a96 authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Fix known_hosts problem

parent 8a7912a5
No related branches found
No related tags found
No related merge requests found
Pipeline #866 failed
......@@ -71,6 +71,8 @@ deploy:
- if [ -d static ] ; then cd static; git pull; cd ..; else git clone https://git.ok1kvk.cz/ok1kvk.cz/static.git; fi
- cd generator/; npm install; cd ..
- node generator/index.js --contentdir . --staticdir static --themedir generator/theme --builddir build --noserver
- mkdir ~/.ssh; chmod 700 ~/.ssh; touch ~/.ssh/known_hosts; chmod 600 ~/.ssh/known_hosts
- ssh-keygen -f ~/.ssh/known_hosts -R $SSH_HOST
- echo "$DEPLOY_SSH_KEY" > sshkey
- chmod 600 sshkey
- rsync -e 'ssh -i sshkey' -rc --delete build/ $SSH_HOST:$HTML_DIR/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment