Build Strategy
Dockflow supports different strategies for building and transferring Docker images.
Strategies Overview
| Strategy | Build Location | Transfer Method |
|---|---|---|
| Local (default) | CI/CD runner | SSH streaming |
| Local + Registry | CI/CD runner | Docker registry |
| Remote | Server | None |
Local Build
By default, images are built in your CI/CD pipeline and transferred to the server via SSH. No additional configuration is required.
Registry Build
For multi-node Swarm clusters, use a Docker registry so worker nodes can pull images. See Docker Registry for configuration.
Remote Build
Build images directly on the server instead of transferring them:
# .deployment/config.yml
options:
remote_build: trueThis clones your repository on the server and builds locally. Useful for large images or slow network connections.
For private repositories, add a GIT_TOKEN secret to your CI/CD environment.