diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69f79f29a141d7c5ac599d2076b9b07e357c7e3e..a580de5596efbdd3f4a59857a42d46631aeb3de8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ cache: stages: - build + - deploy Style check: stage: build @@ -30,3 +31,14 @@ Type check: - pip install pytype script: - pytype scripts + +Deploy docker image: + stage: deploy + image: docker:latest + services: + - docker:dind + script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - docker build -t $CI_REGISTRY/nlp/ahisto-modules/ocr-eval . + - docker push $CI_REGISTRY/nlp/ahisto-modules/ocr-eval + - docker rmi $CI_REGISTRY/nlp/ahisto-modules/ocr-eval