Skip to content
Snippets Groups Projects
Verified Commit 0e6f1344 authored by Teemu Autto's avatar Teemu Autto
Browse files

Added docker-in-docker for kubernetes.

parent e610acfc
No related branches found
No related tags found
No related merge requests found
## Use docker image as a base image. ## Use docker image as a base image.
image: docker:stable image: docker:stable
services:
## Allow building docker images inside of docker. Notice that it's different
## from Docker-from-Docker. https://docs.gitlab.com/ee/ci/docker/using_docker_build.html
- docker:dind
stages: stages:
- build - build
- deploy - deploy
...@@ -13,13 +18,15 @@ cache: ...@@ -13,13 +18,15 @@ cache:
variables: variables:
## Setup image name -variable. Change this if you wish, but watch out ## Name for the generated image. Change this if you wish, but watch out
## for special characters! ## for special characters!
DOCKER_IMAGE_NAME: tjts5901 DOCKER_IMAGE_NAME: tjts5901
## (Optional) More verbose output from pipeline ## (Optional) More verbose output from pipeline
#CI_DEBUG_TRACE: "true" #CI_DEBUG_TRACE: "true"
DOCKER_TLS_CERTDIR: "/certs"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
## Build docker image ## Build docker image
...@@ -41,7 +48,7 @@ pages: ...@@ -41,7 +48,7 @@ pages:
script: script:
## Install `mkdocs` and generate HTML documentation. ## Install `mkdocs` and generate HTML documentation.
- pip install --disable-pip-version-check mkdocs mkdocs-material - pip install --disable-pip-version-check -r docs/requirements.txt
- mkdocs build -f docs/mkdocs.yml - mkdocs build -f docs/mkdocs.yml
artifacts: artifacts:
## Artifacts are sent to gitlab, and accessible from there. ## Artifacts are sent to gitlab, and accessible from there.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment