Commit d93d1345 authored by Axel Dürkop's avatar Axel Dürkop
Browse files

Merge branch 'rztab' into 'development'

Update .gitlab-ci.yml

See merge request itbh-inf-wise201718/veranstaltungsskript-inf-wise201718!4
parents 41bf6942 2ff7067c
variables:
REVIEW_IMAGE: docker.rz.tu-harburg.de:5000/docker/nginx:latest
REVIEW_IMAGE: docker.rz.tu-harburg.de:5000/docker/nginx--review-apps:latest
BUILD_IMAGE: docker.rz.tu-harburg.de:5000/docker/gitbook-itbh-glr:latest
DOCKER_CONTAINER_NAME: ${CI_PROJECT_PATH_SLUG}-${CI_ENVIRONMENT_SLUG}
......@@ -39,6 +39,7 @@ review:start:
- sudo docker run --rm -v $(pwd):/source ${BUILD_IMAGE} install
- sudo docker run --rm -v $(pwd):/source ${BUILD_IMAGE} build
- sudo docker cp ./_book/. ${DOCKER_CONTAINER_NAME}:/usr/share/nginx/html
- if [ ! -z "${REVIEW_CREDENTIALS}" ]; then mkdir -p ./nginx && echo "${REVIEW_CREDENTIALS}" > ./nginx/credentials && sudo docker cp ./nginx/credentials ${DOCKER_CONTAINER_NAME}:/etc/nginx/htpasswd/credentials; rm -f ./nginx/credentials; fi
environment:
name: review/${CI_COMMIT_REF_NAME}
url: http://${CI_ENVIRONMENT_SLUG}.collaborating.tuhh.de
......@@ -69,7 +70,7 @@ review:stop:
except:
- master
deploy:
.deploy:
stage: deploy
only:
- master
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment