try login in new place

This commit is contained in:
Ric Harvey
2018-06-18 22:14:48 +01:00
parent f7417bafc5
commit ee1a725a39
2 changed files with 2 additions and 0 deletions

View File

@@ -14,5 +14,6 @@ build:
script:
- 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 login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build -t richarvey/nginx-php-fpm:"$build" .
- docker push "$CI_REGISTRY"/richarvey/nginx-php-fpm:"$build"