try and match tag/branch

This commit is contained in:
Ric Harvey
2018-06-18 18:38:00 +01:00
parent 292a811feb
commit e60506816f

View File

@@ -12,6 +12,7 @@ before_script:
build:
stage: build
script:
- echo Build started on `date`
- docker build -t richarvey/nginx-php-fpm:latest .
- docker push richarvey/nginx-php-fpm:latest
- echo Build started on `date` for $CI_COMMIT_REF_NAME
- f [[ "$CI_REGISTRY" =~ "master" ]]; then export build=latest else build=$CI_REGISTRY fi
- docker build -t richarvey/nginx-php-fpm:"$build" .
- docker push richarvey/nginx-php-fpm:"$build"