Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
HOOU
Tekethics
Commits
0500fb31
Commit
0500fb31
authored
Sep 13, 2017
by
Andreas Böttger
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
38166e86
Pipeline
#12555
failed with stage
in 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
.gitlab-ci.yml
.gitlab-ci.yml
+5
-2
No files found.
.gitlab-ci.yml
View file @
0500fb31
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment