version: 2.1 jobs: build: docker: - image: account-id.dkr.ecr.us-east-1.amazonaws.com/org/repo:0.1 aws_auth: aws_access_key_id: AKIAQWERVA # can specify string literal values aws_secret_access_key: $ECR_AWS_SECRET_ACCESS_KEY # or project UI envar reference jobs: build: docker: - image: buildpack-deps:trusty # primary container auth: username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference environment: ENV: CI - image: mongo:2.6.8 auth: username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference command: [--smallfiles] - image: postgres:9.4.1 auth: username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference environment: POSTGRES_USER: root - image: redis@sha256:54057dd7e125ca41afe526a877e8bd35ec2cdd33b9217e022ed37bdcf7d09673 auth: username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference - image: acme-private/private-image:321 auth: username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference