Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dkurzaw1
lab.sub
Commits
5c73e895
Verified
Commit
5c73e895
authored
Feb 19, 2018
by
Ingo Pfennigstorf
💅
Browse files
Add deployment as docker image
parent
fb4cb2df
Changes
5
Hide whitespace changes
Inline
Side-by-side
.dockerignore
0 → 100644
View file @
5c73e895
node_modules
.gitlab-ci.yml
View file @
5c73e895
image
:
ruby:2.3
image
:
docker:latest
variables
:
DOCKER_DRIVER
:
overlay2
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
JEKYLL_ENV
:
production
before_script
:
-
bundle install
test
:
stage
:
test
script
:
-
bundle exec jekyll build -d test
artifacts
:
paths
:
-
test
except
:
-
master
pages
:
stage
:
deploy
script
:
-
bundle exec jekyll build -d public
artifacts
:
paths
:
-
public
build_image
:
stage
:
build
only
:
-
master
-
de
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker build -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
services
:
-
docker:dind
Dockerfile
0 → 100644
View file @
5c73e895
FROM
ruby:2.3
as
build
ENV
JEKYLL_ENV: production
WORKDIR
/usr/src/app
COPY
. /usr/src/app
RUN
bundle
install
&&
\
bundle
exec
jekyll build
-d
public
FROM
nginx:1.13-alpine
COPY
--from=build /usr/src/app/public/ /usr/share/nginx/html/
_config.yml
View file @
5c73e895
...
...
@@ -5,7 +5,7 @@ paginate: 100 # it will paginate after this number
language
:
'
en-uk'
# edit baseurl to simply '/' if using as your personal page (instead of a project page)
baseurl
:
/
lab.sub/
baseurl
:
/
# Website info
title
:
lab.sub
...
...
@@ -14,8 +14,8 @@ cover: assets/images/blog-cover.jpg
logo
:
assets/images/sub-goettingen-white-small.svg
logo_dark
:
assets/images/favicon.png
favicon
:
assets/images/favicon.png
production_url
:
https://
subugoe.pages.gwdg.de/lab.sub
/
source_url
:
https://
git
lab.
gwdg.de/subugoe/lab.sub
/
production_url
:
https://
lab.sub.uni-goettingen.de
/
source_url
:
https://lab.
sub.uni-goettingen.de
/
source_branch
:
master
# Social info
...
...
tags.html
View file @
5c73e895
...
...
@@ -35,7 +35,7 @@ into the {body} of the default.hbs template -->
{% endif %}
<div
class=
"post-card {{ tag[0]}}"
>
{% if cover %}
<a
class=
"post-card-image-link"
href=
"{{ site.baseurl }}
/
tag/{{ tag[0] }}"
>
<a
class=
"post-card-image-link"
href=
"{{ site.baseurl }}tag/{{ tag[0] }}"
>
<div
class=
"post-card-image"
style=
"background-image: url({{ site.baseurl }}{{ cover }})"
></div>
</a>
{% endif %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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