trying other lftp mirror setting

This commit is contained in:
Sebastian Frank 2017-09-01 18:43:46 +02:00
parent 0533437622
commit 1f86e58a86
No known key found for this signature in database
GPG Key ID: DC2BC5C506EBF6F3

View File

@ -36,7 +36,7 @@ deploy:
- cat index.html
- 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"
- 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 -n -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME"
environment:
name: $CI_COMMIT_REF_NAME
url: http://ui.basispanel.de/$CI_COMMIT_REF_NAME/
@ -52,6 +52,6 @@ deploy_fullsync:
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 -c -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME"
- 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 --transfer-all -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME"
when: manual