From ec0a52bd8d3a1a71457f96d723c6afa715d161a9 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sat, 5 Aug 2017 12:33:55 -0700 Subject: [PATCH] testing if itll build on a branch --- bitbucket-pipelines.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 3a4fa233..6ef8601b 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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 . \ No newline at end of file + - docker push $IMAGE_NAME \ No newline at end of file