Using Custom Docker Images on Bitbucket Build Pipeline
Posted on Tue 28 November 2017 in docker • Tagged with docker, ci
Usually setting up the build dependencies is a major part of each build job. Thankfully, Atlassian's Bitbucket Pipelines, the new CI platform that integrates into Bitbucket, supports custom docker images.
To configure the build pipeline, you create
bitbucket-pipeline.yml . This one
uses our custom image (built below) and triggers builds whenever a
tag is pushed.
image: tonymet/tonym.us:latest pipelines: tags: release-*: - step: script: - make sync_down_images - make s3_upload
That first line is the magic part -- you can run ANY public docker image from dockerhub (and private ones as well with further setup).