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

Try again

parent 4b4c5a96
No related branches found
No related tags found
No related merge requests found
Pipeline #867 passed
......@@ -71,11 +71,9 @@ 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/
- rsync -e 'ssh -i sshkey -o StrictHostKeyChecking=no' -rc --delete build/ $SSH_HOST:$HTML_DIR/
- rm sshkey
cache:
......
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