image: docker:latest services: - docker:dind stages: - build before_script: - echo Logging in to Docker Hub... - docker login -u richarvey --password-stdin="$DOCKER_PASSWORD" build: stage: build script: - echo Build started on `date` - docker build -t richarvey/nginx-php-fpm:latest . - docker push richarvey/nginx-php-fpm:latest