From ed35ea2afbf24f1520d69c75610253a14c96b4e2 Mon Sep 17 00:00:00 2001 From: Dagger Date: Wed, 25 May 2022 00:54:04 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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