From 165a99ccc7d664fe154a401b1e036ff31c9eb5cb Mon Sep 17 00:00:00 2001 From: saibotk Date: Wed, 8 Jan 2020 11:53:17 +0100 Subject: [PATCH] Add docker login to test step --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9f6736..84c429c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,6 +83,7 @@ test: LANG: C.UTF-8 before_script: - apt-get install curl + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: - docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG - sleep 5 @@ -105,6 +106,7 @@ test-deploy: LANG: C.UTF-8 before_script: - apt-get install curl + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: - docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE - sleep 5