fix ci/cd

This commit is contained in:
Ric Harvey
2018-06-17 22:05:51 +01:00
parent 11fb462178
commit 7e9a379e0e

View File

@@ -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