Professional Documents
Culture Documents
Buddy lets developers easily build and test Docker images with code from Git repository. Setting
up a Docker-focused pipeline is as easy as setting up any other type of delivery in the service.
First, you need to specify which repository should the image be based on. Buddy has native
integrations with GitHub, Bitbucket and GitLab, but you can hook up any other repository as well:
With the repository successfully synchronized, you can add the pipeline. A pipeline can be
triggered in three ways: manually on click, automatically on git push, or recurrently at a specific
time:
The second thins is setting the branch, tag, or PR for which the build will run:
The next step is adding the action that will dockerize your application. Select 'Build Image' from
the Docker section of the action roster:
In the action details, specify the Dockerfile location and the directory in the context of which the
image will be built (optional):
You can find a complete list of the default environment variables here.
Apart from this, you can define your own build arguments in the action:
Cache
All Docker layers are automatically cached after the build. This means that subsequent builds
only create layers that have changed since the last build, which drastically reduces the build
time. After every build, Buddy runs docker prune which deletes all dangling images (layers that
have no relationship to any tagged images and consume disk space).
If you run multi-stage builds, you may want to disable the prune option, as it deletes the layers of
intermediate stages as well. You can do it in the 'Options' tab:
What's more
Introduction to pipelines****
Automate Kubernetes
workflows