Commit b91f8eb5 authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Set up Docker image deployment

parent 3a9598de
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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