diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16d6ce6..0c252b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,4 +8,14 @@ pytest: script: - cd /builds/u5500327/wmgzon - pip install -r requirements.txt - - pytest \ No newline at end of file + - pytest + +deploy: + image: docker:20.10.16 + stage: deploy + services: + - docker:20.10.16-dind + script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - docker build -t $CI_REGISTRY/group/project/image:latest . + - docker push $CI_REGISTRY/group/project/image:latest \ No newline at end of file