review via docker app
This commit is contained in:
parent
9c0b7cec47
commit
aa13efc651
117
.gitlab-ci.yml
117
.gitlab-ci.yml
@ -1,7 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
# - test
|
# - test
|
||||||
- deploy
|
- review
|
||||||
|
|
||||||
build_ui:
|
build_ui:
|
||||||
image: node
|
image: node
|
||||||
@ -23,62 +23,81 @@ build_ui:
|
|||||||
- build
|
- build
|
||||||
- conf
|
- conf
|
||||||
- index.html
|
- index.html
|
||||||
|
- Dockerfile
|
||||||
|
- docker-compose.yml
|
||||||
|
|
||||||
|
|
||||||
|
#start_review:
|
||||||
|
# image: mwienk/docker-lftp
|
||||||
|
# tags:
|
||||||
|
# - docker
|
||||||
|
# dependencies:
|
||||||
|
# - build_ui
|
||||||
|
# stage: deploy
|
||||||
|
# script:
|
||||||
|
# - 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 -n -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME"
|
||||||
|
# environment:
|
||||||
|
# name: review/$CI_COMMIT_REF_NAME
|
||||||
|
# url: http://ui.basispanel.de/$CI_COMMIT_REF_NAME/
|
||||||
|
# on_stop: stop_review
|
||||||
|
#
|
||||||
|
#stop_review:
|
||||||
|
# image: mwienk/docker-lftp
|
||||||
|
# tags:
|
||||||
|
# - docker
|
||||||
|
# stage: deploy
|
||||||
|
# variables:
|
||||||
|
# GIT_STRATEGY: none
|
||||||
|
# script:
|
||||||
|
# - echo stopping env
|
||||||
|
# environment:
|
||||||
|
# name: review/$CI_COMMIT_REF_NAME
|
||||||
|
# action: stop
|
||||||
|
# when: manual
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#fullsync_review:
|
||||||
|
# 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 --transfer-all -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME"
|
||||||
|
# when: manual
|
||||||
|
|
||||||
|
|
||||||
start_review:
|
start_review:
|
||||||
image: mwienk/docker-lftp
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
dependencies:
|
|
||||||
- build_ui
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- 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 -n -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME"
|
|
||||||
environment:
|
|
||||||
name: review/$CI_COMMIT_REF_NAME
|
|
||||||
url: http://ui.basispanel.de/$CI_COMMIT_REF_NAME/
|
|
||||||
on_stop: stop_review
|
|
||||||
|
|
||||||
stop_review:
|
|
||||||
image: mwienk/docker-lftp
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
stage: deploy
|
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: none
|
|
||||||
script:
|
|
||||||
- echo stopping env
|
|
||||||
environment:
|
|
||||||
name: review/$CI_COMMIT_REF_NAME
|
|
||||||
action: stop
|
|
||||||
when: manual
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fullsync_review:
|
|
||||||
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 --transfer-all -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME"
|
|
||||||
when: manual
|
|
||||||
|
|
||||||
|
|
||||||
docker_test:
|
|
||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
dependencies:
|
dependencies:
|
||||||
- build_ui
|
- build_ui
|
||||||
stage: deploy
|
stage: review
|
||||||
script:
|
script:
|
||||||
- mkdir _for_docker
|
- mkdir _for_docker
|
||||||
- mv assets build conf index.html _for_docker
|
- mv assets build conf index.html _for_docker
|
||||||
- docker-compose -p ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME} up -d --build
|
- docker-compose -p ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME} up -d --build
|
||||||
|
environment:
|
||||||
|
name: review/$CI_COMMIT_REF_NAME
|
||||||
|
url: http://${CI_COMMIT_REF_NAME}.${CI_PROJECT_NAME}.dev.basehosts.de/
|
||||||
|
on_stop: stop_review
|
||||||
|
|
||||||
|
stop_review:
|
||||||
|
tags:
|
||||||
|
- shell
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
stage: review
|
||||||
|
when: manual
|
||||||
|
script:
|
||||||
|
- docker-compose -p ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME} down
|
||||||
|
environment:
|
||||||
|
name: review/$CI_COMMIT_REF_NAME
|
||||||
|
action: stop
|
||||||
|
Loading…
Reference in New Issue
Block a user