Docker with YAML

YAML Parameters for Docker

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to DOCKER.
execute_commands RequiredString[]The commands that will be executed.
setup_commandsString[]The command that will be executed only on the first run.
integrationStringThe integration. Required to authorize in Amazon ECR, Google GCR and Docker Hub.
regionStringThe name of the Amazon region. If the Amazon ECR integration has been selected, provide the region to authorize in. The full list of regions is available here.
registryStringProvide if you want to authorize in a private registry or Google GCR. For GCR, it can be one of gcr.io, us.gcr.io, eu.gcr.io or asia.gcr.io.
loginStringThe username required to authorize in a private registry.
passwordStringThe password required to authorize in a private registry.
shellStringThe name of the shell that will be used to execute commands. Can be one of SH (default) or BASH.
execute_every_commandBooleanIf set to true, all commands will be executed regardless of the result of the previous command.

YAML example for Docker

yaml
actions: - action: "Docker CLI" type: "DOCKER" region: "us-east-1" execute_commands: - "docker --version" setup_commands: - "apt-get update -y" - "apt-get install -y wget" shell: "BASH" integration: "my_integration"

Last modified on Sep 24, 2024