From 13f41e6cc73095e4c7d7eb0087ddf13403914247 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 29 Dec 2021 15:32:17 +0000 Subject: [PATCH] Use the Gitlab Docker Registry --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9a63a4..0f0d7aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,9 @@ build-job: # This job runs in the build stage, which runs first. stage: build script: - echo "Building the Docker image..." - - docker-compose build + - 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 - echo "Build complete." unit-test-job: # This job runs in the test stage.