From dc86f12d5fde5690407a4032fc9eb29fca26e7a1 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Thu, 25 Feb 2021 17:20:47 +0000 Subject: [PATCH] bitbucket-pipelines.yml edited online with Bitbucket --- bitbucket-pipelines.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 3fd35dd..5746488 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -12,7 +12,7 @@ pipelines: default: - parallel: - step: - name: Build and Test + name: Parallel Build and Test script: - IMAGE_NAME=$BITBUCKET_REPO_SLUG - docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME} @@ -28,7 +28,7 @@ pipelines: branches: master: - step: - name: Build and Test + name: Master Build and Test script: - IMAGE_NAME=$BITBUCKET_REPO_SLUG - docker build . --file Dockerfile --tag ${DOCKERHUB_NAMESPACE}/${IMAGE_NAME} @@ -45,6 +45,7 @@ pipelines: script: - echo ${DOCKERHUB_PASSWORD} | docker login --username "$DOCKERHUB_USERNAME" --password-stdin - IMAGE_NAME=$BITBUCKET_REPO_SLUG - - docker push $DOCKERHUB_NAMESPACE/${IMAGE_NAME}:latest + - NAMESPACE=$DOCKERHUB_NAMESPACE + - docker push ${NAMESPACE}/${IMAGE_NAME}:latest services: - docker