From 455dd08fbf8cd245f4cca5def9000d315484ba4e Mon Sep 17 00:00:00 2001 From: mumshad muhammed Date: Wed, 7 Jun 2017 21:28:50 +0000 Subject: [PATCH 1/3] bitbucket-pipelines.yml created online with Bitbucket --- bitbucket-pipelines.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bitbucket-pipelines.yml diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml new file mode 100644 index 0000000..133c253 --- /dev/null +++ b/bitbucket-pipelines.yml @@ -0,0 +1,24 @@ +# This is a sample build configuration for Docker. +# Check our guides at https://confluence.atlassian.com/x/O1toN for more examples. +# Only use spaces to indent your .yml configuration. +# ----- +# You can specify a custom docker image from Docker Hub as your build environment. +# image: atlassian/default-image:latest + +# enable Docker for your repository +options: + docker: true + +pipelines: + default: + - step: + script: # Modify the commands below to build your repository. + # Set $DOCKER_HUB_USERNAME and $DOCKER_HUB_PASSWORD as environment variables in repository settings + - export IMAGE_NAME=mmumshad/ansible-playable:$BITBUCKET_COMMIT + + # 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 \ No newline at end of file From f8cdeecd9be45bd712c2e69a28fe473914cbdbf9 Mon Sep 17 00:00:00 2001 From: mumshad muhammed Date: Wed, 7 Jun 2017 22:38:07 +0000 Subject: [PATCH 2/3] bitbucket-pipelines.yml edited online with Bitbucket --- bitbucket-pipelines.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 133c253..b12135f 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -21,4 +21,7 @@ pipelines: # 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 \ No newline at end of file + - docker push $IMAGE_NAME + # Tag to latest and push to latest + - docker tag IMAGE_NAME mmumshad/ansible-playable:latest + - docker push mmumshad/ansible-playable:latest \ No newline at end of file From bdec48283bc614e7171d271e013497fc67cfc788 Mon Sep 17 00:00:00 2001 From: mumshad muhammed Date: Wed, 7 Jun 2017 23:00:40 +0000 Subject: [PATCH 3/3] bitbucket-pipelines.yml edited online with Bitbucket --- bitbucket-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index b12135f..00bf410 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -23,5 +23,5 @@ pipelines: # push the new Docker image to the Docker registry - docker push $IMAGE_NAME # Tag to latest and push to latest - - docker tag IMAGE_NAME mmumshad/ansible-playable:latest + - docker tag $IMAGE_NAME mmumshad/ansible-playable:latest - docker push mmumshad/ansible-playable:latest \ No newline at end of file