add some debug

This commit is contained in:
Ric Harvey
2018-06-18 23:07:32 +01:00
parent ee1a725a39
commit c9256c5f23

View File

@@ -8,6 +8,7 @@ stages:
before_script:
- echo Logging in to $CI_REGISTRY...
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker info | grep Registry
build:
stage: build
@@ -16,4 +17,5 @@ build:
- 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"
- docker info | grep Registry
- docker push "$CI_REGISTRY_IMAGE":"$build"