From 92f768e22ab93b3213b8c21359ff3828460b86ed Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 7 Jul 2016 23:50:47 +1000 Subject: [PATCH] Updated .gitlab-ci.yml --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1023fdc..5971a29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,8 @@ variables: before_script: - env|sort +- test -n "${REGISTRY}" # Needs to be set in project +- test -n "${IMAGE}" # Needs to be set in project - docker info - docker version - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY} @@ -20,9 +22,10 @@ test: stage: test script: - docker build -t ${IMAGE}:${VERSION} . + - docker images only: - debug - + build: stage: build script: @@ -32,4 +35,4 @@ build: tags: - docker only: - - c6 + - master