diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d05000f..6c4fe4e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,4 +4,13 @@ build-test: - python --version - pip --version - pip install -r requirements.txt - - uvicorn app:app --host 0.0.0.0 --port 80 \ No newline at end of file + - echo "pytest needs finishing" + +build-docker: + image: docker + services: + - docker:dind + script: + - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin + - docker build -t $CI_REGISTRY_IMAGE . + - docker push $CI_REGISTRY_IMAGE \ No newline at end of file