diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 74dbd35..78b7f2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,23 @@ build_ui: - index.html -deploy_master: +deploy: + image: mwienk/docker-lftp + tags: + - docker + dependencies: + - build_ui + stage: deploy + script: + - mkdir _for_upload + - mv assets build conf index.html _for_upload + - lftp -c "set sftp:auto-confirm yes; open -u intern_basispanel_ui,$FTP_PASSWORD sftp://ftp.basehosts.de;mkdir -f /$CI_COMMIT_REF_NAME; mirror -v --ignore-time -c -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME" + environment: + name: $CI_COMMIT_REF_NAME + url: http://ui.basispanel.de/$CI_COMMIT_REF_NAME/ + + +deploy_fullsync: image: mwienk/docker-lftp tags: - docker @@ -36,4 +52,5 @@ deploy_master: - mkdir _for_upload - mv assets build conf index.html _for_upload - lftp -c "set sftp:auto-confirm yes; open -u intern_basispanel_ui,$FTP_PASSWORD sftp://ftp.basehosts.de;mkdir -f /$CI_COMMIT_REF_NAME; mirror -v -c -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME" + when: manual