Added a CI job that builds a docker image and pushes it to the project's registry.

This commit is contained in:
s3lph 2018-07-10 20:25:34 +02:00
parent e618f06d11
commit 93319e874e
2 changed files with 9 additions and 1 deletions

View file

@ -4,6 +4,7 @@ image: s3lph/matemat-ci:20180619-01
stages: stages:
- test - test
- codestyle - codestyle
- deploy
test: test:
stage: test stage: test
@ -18,3 +19,10 @@ codestyle:
- pip3 install -r requirements.txt - pip3 install -r requirements.txt
- pycodestyle matemat - pycodestyle matemat
# - mypy --ignore-missing-imports --strict -p matemat # - mypy --ignore-missing-imports --strict -p matemat
docker_build_push:
stage: deploy
script:
- docker build -t "s3lph/matemat:$(git rev-parse HEAD)" .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_TOKEN registry.gitlab.com
- docker push registry.gitlab.com/s3lph/matemat

2
doc

@ -1 +1 @@
Subproject commit 51e940460ddbaebb7f2ffc48d00d9ef19cf8d33f Subproject commit 9634785e5621b324f72598b3cee83bbc45c25d7b