Commit 1abc3976 authored by Isabella Skořepová's avatar Isabella Skořepová

Potentially faster upload

parent 1342c065
Pipeline #498 passed with stage
in 5 minutes and 5 seconds
......@@ -24,7 +24,7 @@ preview:
- node generator/index.js --baseurl /$CI_BUILD_REF_NAME --contentdir . --staticdir fake_static --themedir generator/theme --builddir build --noserver
- echo "$PREVIEW_SSH_KEY" > sshkey
- chmod 600 sshkey
- rsync -e 'ssh -i sshkey' -rc --delete build/ $SSH_HOST:$HTML_DIR/$CI_BUILD_REF_NAME/
- rsync -e 'ssh -i sshkey' -rtv --delete-after build/ $SSH_HOST:$HTML_DIR/$CI_BUILD_REF_NAME/
- ssh -i sshkey $SSH_HOST ln -fs $HTML_DIR/static/static $HTML_DIR/static/$CI_BUILD_REF_NAME
- rm sshkey
......@@ -65,7 +65,7 @@ deploy:
- node generator/index.js --contentdir . --staticdir static --themedir generator/theme --builddir build --noserver
- 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' -rtv --delete-after build/ $SSH_HOST:$HTML_DIR/
- rm sshkey
cache:
......
Markdown is supported
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