This build step invokes docker-compose
commands in Google Cloud Build.
Arguments passed to this builder will be passed to docker-compose
directly,
allowing callers to run any docker-compose
command.
To make this cloud builder available in your active Google Cloud project:
cd cloud-builders-community/docker-compose
gcloud builds submit --config=cloudbuild.yaml .
The build defaults to using the latest version of docker-compose
at the time of writing: 1.25.5
. To use a different version:
cd cloud-builders-community/docker-compose
gcloud builds submit --config=cloudbuild.yaml --substitutions=_DOCKER_COMPOSE_VERSION="1.24.0"
You can find a list of releases and their version numbers here.
See provided hello-world example.