Try with build and deploy as one step

This commit is contained in:
Luke Robles 2017-08-17 16:51:42 -07:00
parent bd462d19aa
commit d7b59bce61

View File

@ -8,7 +8,6 @@ before_script:
stages:
- test
- build
- deploy
linting_python:
@ -20,19 +19,11 @@ linting_python:
tags:
- python
building_docker_container:
build_and_push_container:
stage: build
script:
- docker build -t ldooks/dragon-bot:latest .
only:
- master
tags:
- docker
pushing_docker_container:
stage: deploy
script:
- docker login -u ldooks -p $DOCKER_PASSWORD
- docker build -t ldooks/dragon-bot:latest .
- docker push ldooks/dragon-bot:latest
only:
- master