Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
oncampus
Patterns and Frameworks
Commits
cbd51a1b
Commit
cbd51a1b
authored
Jun 14, 2019
by
Jens Ehlers
Browse files
Merge branch 'master' of
https://git.mylab.th-luebeck.de/oncampus/patterns-and-frameworks
parents
c670341c
d542eadd
Pipeline
#6728
passed with stage
in 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
cbd51a1b
pages
:
services
:
stage
:
deploy
-
docker:dind
variables
:
DOCKER_HOST
:
tcp://docker:2375
DOCKER_DRIVER
:
overlay2
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build
:
stage
:
build
script
:
script
:
-
mv docs public
-
docker build -t $IMAGE_TAG .
artifacts
:
-
docker push $IMAGE_TAG
paths
:
-
public
only
:
-
master
\ No newline at end of file
Dockerfile
0 → 100644
View file @
cbd51a1b
FROM
nginx
EXPOSE
80
RUN
sed
-i
-e
's, location / {, location /patterns-and-frameworks {,g'
/etc/nginx/conf.d/default.conf
;
\
sed
-i
-e
's, root /usr/share/nginx/html;, alias /usr/share/nginx/html;,g'
/etc/nginx/conf.d/default.conf
COPY
docs/ /usr/share/nginx/html
Write
Preview
Supports
Markdown
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