Add docker build to CI
This commit is contained in:
parent
b5c1289358
commit
819795c1f9
1 changed files with 11 additions and 0 deletions
|
|
@ -1,7 +1,18 @@
|
||||||
stages:
|
stages:
|
||||||
|
- build_docker_image
|
||||||
- test
|
- test
|
||||||
- quality-assurance
|
- 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
|
# Debian Buster
|
||||||
py37-django22:
|
py37-django22:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue