environment CI config
This commit is contained in:
parent
391daad693
commit
4c02ecb06a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user