environment CI config

This commit is contained in:
Sebastian Frank 2017-08-31 23:09:32 +02:00
parent 391daad693
commit 4c02ecb06a
No known key found for this signature in database
GPG Key ID: DC2BC5C506EBF6F3

View File

@ -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