Commit 0500fb31 authored by Andreas Böttger's avatar Andreas Böttger 😬

Update .gitlab-ci.yml

parent 38166e86
Pipeline #12555 failed with stage
in 28 seconds
variables:
REVIEW_IMAGE: docker.rz.tu-harburg.de:5000/docker/jekyll
REVIEW_IMAGE: docker.rz.tu-harburg.de:5000/docker/jekyll:latest
DOCKER_CONTAINER_NAME: ${CI_PROJECT_PATH_SLUG}-${CI_ENVIRONMENT_SLUG}
stages:
......@@ -10,7 +10,9 @@ review:start:
stage: review
script:
- pwd
- sudo docker run --detach --rm --env VIRTUAL_HOST=${CI_ENVIRONMENT_SLUG} --name ${DOCKER_CONTAINER_NAME} ${REVIEW_IMAGE}:latest || true
- whoami
- sudo docker pull ${REVIEW_IMAGE}
- sudo docker run --detach --rm --env VIRTUAL_HOST=${CI_ENVIRONMENT_SLUG} --name ${DOCKER_CONTAINER_NAME} ${REVIEW_IMAGE} || true
- sudo docker cp . ${DOCKER_CONTAINER_NAME}:/opt/app
- sudo docker exec ${DOCKER_CONTAINER_NAME} bundle install --gemfile=/opt/app/Gemfile
#when: manual
......@@ -51,6 +53,7 @@ deploy:generate:
tags:
- production
script:
- pwd
- sudo docker pull docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest
- sudo docker run --rm -v $(pwd):/source docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest install
- sudo docker run --rm -v $(pwd):/source docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest build
......
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