From bc454b7a3723581d15d5af759c34d71d9f22e1ea Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 25 Feb 2022 21:57:41 +0000 Subject: [PATCH] Publish to container registry --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13099ae..074f9ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,5 +71,10 @@ container: - build only: - master + variables: + IMAGE_TAG: $CI_REGISTRY_IMAGE:latest + before_script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: - - docker build -f prod/Dockerfile -t theorangeone.net . + - docker build -f prod/Dockerfile -t $IMAGE_TAG . + - docker push $IMAGE_TAG