zulhfreelancer
9/23/2017 - 8:51 AM

Bitbucket Pipelines Base

Bitbucket Pipelines Base

options:
  docker: true

pipelines:
  default:
    - step:
        script:
          - export IMAGE_NAME=your-Dockerhub-account/your-docker-image-name:$BITBUCKET_COMMIT
          - docker build -t $IMAGE_NAME .
          - docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
          - docker push $IMAGE_NAME