testing if itll build on a branch

This commit is contained in:
Luke Robles 2017-08-05 12:33:55 -07:00
parent c86b7c0625
commit 7a295e1cfe

View File

@ -17,21 +17,14 @@ pipelines:
- echo "Making sure the python actually runs"
- pip install docker discord.py pybooru requests
- python dragon-bot.py test
- export IMAGE_NAME=ldooks/dragon-bot:latest
# build the Docker image (this will use the Dockerfile in the root of the repo)
- docker build -t $IMAGE_NAME .
branches:
master:
- step:
script:
- export IMAGE_NAME=ldooks/dragon-bot:latest
# build the Docker image (this will use the Dockerfile in the root of the repo)
- docker build -t $IMAGE_NAME .
# authenticate with the Docker Hub registry
- docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
# push the new Docker image to the Docker registry
- docker push $IMAGE_NAME
feature/*:
- step:
script:
# Only build iamges, dont push when we're on a feature branch
- export IMAGE_NAME=ldooks/dragon-bot:latest
# build the Docker image (this will use the Dockerfile in the root of the repo)
- docker build -t $IMAGE_NAME .
- docker push $IMAGE_NAME