diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ff2c3f2..6dedcf3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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" diff --git a/README.md b/README.md index 45d9655..e28e50f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![pipeline status](https://gitlab.com/ric_harvey/nginx-php-fpm/badges/master/pipeline.svg)](https://gitlab.com/ric_harvey/nginx-php-fpm/commits/master) ![docker hub](https://img.shields.io/docker/pulls/richarvey/nginx-php-fpm.svg?style=flat-square) ![docker hub](https://img.shields.io/docker/stars/richarvey/nginx-php-fpm.svg?style=flat-square)