docs: build docs on new version

This commit is contained in:
Jens Langhammer 2019-12-12 18:13:38 +01:00
parent ac5f8465b9
commit a6afb99edd
1 changed files with 22 additions and 11 deletions

View File

@ -49,42 +49,41 @@ build-dev-image:
- tags - tags
- /^version/.*$/ - /^version/.*$/
isort: isort:
script: script:
- isort -c -sg env - isort -c -sg env
stage: test stage: test
services: services:
- postgres:latest - postgres:latest
- redis:latest - redis:latest
migrations: migrations:
script: script:
- python manage.py migrate - python manage.py migrate
stage: test stage: test
services: services:
- postgres:latest - postgres:latest
- redis:latest - redis:latest
prospector: prospector:
script: script:
- prospector - prospector
stage: test stage: test
services: services:
- postgres:latest - postgres:latest
- redis:latest - redis:latest
pylint: pylint:
script: script:
- pylint passbook - pylint passbook
stage: test stage: test
services: services:
- postgres:latest - postgres:latest
- redis:latest - redis:latest
coverage: coverage:
script: script:
- ./scripts/coverage.sh - ./scripts/coverage.sh
stage: test stage: test
services: services:
- postgres:latest - postgres:latest
- redis:latest - redis:latest
build-passbook-server: build-passbook-server:
stage: build stage: build
@ -98,6 +97,18 @@ build-passbook-server:
only: only:
- tags - tags
- /^version/.*$/ - /^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: build-passbook-static:
stage: build stage: build
image: image: