Skip to content

Docker Deploy

Docker Image SizeLicenseGit Repository

Deploys services in a Docker environment.

Params

ParamDescription
DOCKER_LOGIN_REGISTRIESSpace separated list of Docker registries to log in to (user:password@registry) (string)
MODEWhether to use compose v1, v2 or swarm mode (default: swarm) ("v1" | "v2" | "swarm")
NAMECompose project name required for swarm mode (string)
FILECompose file name (use - for STDIN) (string | "-")
CONTEXTContext directory (relative to project root) (default: .) (string)
COMPOSE_BUILDWhether to build images before starting containers (default: missing) ("always" | "missing" | "never")
COMPOSE_RECREATEWhether to recreate containers even if their configuration and image haven't changed (default: missing) ("always" | "missing" | "never")
COMPOSE_PULLWhether to pull images before running (default: missing) ("always" | "missing" | "never")
SWARM_PULLWhether to query the registry to resolve image digest and supported platforms (default: always) ("always" | "changed" | "never")
STATEWhether to deploy or remove the services (default: present) ("present" | "absent")

Trust

This step requires access to the Docker socket. See Trusted Tasks for more information.