Add docker build to CI

This commit is contained in:
Alexandre Iooss 2020-09-01 17:33:03 +02:00
parent b5c1289358
commit 819795c1f9
1 changed files with 11 additions and 0 deletions

View File

@ -1,7 +1,18 @@
stages:
- build_docker_image
- test
- quality-assurance
docker:
stage: build_docker_image
script:
- docker login -u $CI_REGISTRY_USERNAME -p $CI_BUILD_TOKEN
- docker build -t $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME .
- docker push $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
only:
- master
- beta
# Debian Buster
py37-django22:
stage: test