Commit cbd51a1b authored by Jens Ehlers's avatar Jens Ehlers
Browse files
parents c670341c d542eadd
Pipeline #6728 passed with stage
in 52 seconds
pages:
stage: deploy
services:
- 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:
- mv docs public
artifacts:
paths:
- public
only:
- master
\ No newline at end of file
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
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
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