try and match tag/branch
This commit is contained in:
@@ -12,6 +12,7 @@ before_script:
|
|||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- echo Build started on `date`
|
- echo Build started on `date` for $CI_COMMIT_REF_NAME
|
||||||
- docker build -t richarvey/nginx-php-fpm:latest .
|
- f [[ "$CI_REGISTRY" =~ "master" ]]; then export build=latest else build=$CI_REGISTRY fi
|
||||||
- docker push richarvey/nginx-php-fpm:latest
|
- docker build -t richarvey/nginx-php-fpm:"$build" .
|
||||||
|
- docker push richarvey/nginx-php-fpm:"$build"
|
||||||
|
|||||||
Reference in New Issue
Block a user