From f7417bafc55dd60de1ebe3830829e2b40a1e2c83 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Mon, 18 Jun 2018 19:02:43 +0100 Subject: [PATCH] fox no login issue --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a112f68..ff2c3f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: - build before_script: - - echo Logging in to Docker Hub... + - echo Logging in to $CI_REGISTRY... - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY build: @@ -15,4 +15,4 @@ build: - echo Build started on `date` for $CI_COMMIT_REF_NAME - if [[ "$CI_COMMIT_REF_NAME" =~ "master" ]]; then export build=latest; else export build=$CI_COMMIT_REF_NAME; fi - docker build -t richarvey/nginx-php-fpm:"$build" . - - docker push richarvey/nginx-php-fpm:"$build" + - docker push "$CI_REGISTRY"/richarvey/nginx-php-fpm:"$build"