From 7e9a379e0e53fff334a396d4e1b057b9be0b7b22 Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Sun, 17 Jun 2018 22:05:51 +0100 Subject: [PATCH] fix ci/cd --- .gitlab-ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9fe16b8..f650afa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,18 @@ +image: docker:latest + +services: + - docker:dind + +stages: + - build + before_script: - echo Logging in to Docker Hub... - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" -job: +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` + - docker build -t richarvey/nginx-php-fpm:latest . + - docker push richarvey/nginx-php-fpm:latest