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

Merge branch 'preview-fix' into 'master'

Preview fix

See merge request !51
parents a0e1b336 1c70a911
No related branches found
No related tags found
1 merge request!51Preview fix
Pipeline #
...@@ -25,7 +25,9 @@ preview: ...@@ -25,7 +25,9 @@ preview:
- echo "$PREVIEW_SSH_KEY" > sshkey - echo "$PREVIEW_SSH_KEY" > sshkey
- chmod 600 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' -rc --delete 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 - ssh -i sshkey $SSH_HOST git -C $HTML_DIR/static/static/ pull
- ssh -i sshkey $SSH_HOST cp -asf $HTML_DIR/static/static/articles/. $HTML_DIR/$CI_BUILD_REF_NAME/clanek/
- ssh -i sshkey $SSH_HOST ln -sf $HTML_DIR/static/static/images/ $HTML_DIR/$CI_BUILD_REF_NAME/
- rm sshkey - rm sshkey
stop_preview: stop_preview:
......
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