From cc090daa6d214c8d21b913aadf25b4fb501ae72d Mon Sep 17 00:00:00 2001 From: Luke Else Date: Fri, 16 Feb 2024 12:49:13 +0000 Subject: [PATCH] First test of deploying to the container registry --- .gitlab-ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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