From a6afb99edd0411063cc6881ae3e68af95971568b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 12 Dec 2019 18:13:38 +0100 Subject: [PATCH] docs: build docs on new version --- .gitlab-ci.yml | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5d0153a2f..816a50477 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,42 +49,41 @@ build-dev-image: - tags - /^version/.*$/ - isort: script: - isort -c -sg env stage: test services: - - postgres:latest - - redis:latest + - postgres:latest + - redis:latest migrations: script: - python manage.py migrate stage: test services: - - postgres:latest - - redis:latest + - postgres:latest + - redis:latest prospector: script: - prospector stage: test services: - - postgres:latest - - redis:latest + - postgres:latest + - redis:latest pylint: script: - pylint passbook stage: test services: - - postgres:latest - - redis:latest + - postgres:latest + - redis:latest coverage: script: - ./scripts/coverage.sh stage: test services: - - postgres:latest - - redis:latest + - postgres:latest + - redis:latest build-passbook-server: stage: build @@ -98,6 +97,18 @@ build-passbook-server: only: - tags - /^version/.*$/ +build-docs: + stage: build + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + before_script: + - echo "{\"auths\":{\"docker.beryju.org\":{\"auth\":\"$DOCKER_AUTH\"}}}" > /kaniko/.docker/config.json + script: + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docs/Dockerfile --destination docker.beryju.org/passbook/docs:latest --destination docker.beryju.org/passbook/docs:0.7.4-beta + only: + - tags + - /^version/.*$/ build-passbook-static: stage: build image: