diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2aa00fc7f0f160e771a87771226eace7e85267ee..ccf8ed6959da8c91092e3e8eb2572475d5a2f156 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,8 +24,10 @@ 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/ - - ssh -i sshkey $SSH_HOST ln -fs $HTML_DIR/static/static $HTML_DIR/static/$CI_BUILD_REF_NAME + - rsync -e 'ssh -i sshkey' -rc --delete build/ $SSH_HOST:$HTML_DIR/$CI_BUILD_REF_NAME/clanek/ + - 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 cp -sf $HTML_DIR/static/static/images/ HTML_DIR/$CI_BUILD_REF_NAME/ - rm sshkey stop_preview: