YAML examples for Build Docker Image
Build Docker image from Dockerfile
yaml
- action: "Build Docker image"
type: "DOCKERFILE"
dockerfile_path: "Dockerfile"
context_path: "."
repository: "my-app"
docker_image_tag: "$BUDDY_RUN_COMMIT"
docker_registry: "AMAZON_ECR"
region: "us-east-1"
build_args:
- "NODE_ENV=production"
- "APP_VERSION=$BUDDY_RUN_COMMIT"
target_stage: "production"
cache_mode: "MAX"
pull: true
integration: "my_aws_integration"
sign_image: true
signing_asset: "my_signing_p12"
Simple Dockerfile build
yaml
- action: "Build Docker image"
type: "DOCKERFILE"
Build without pushing, to be pushed by a separate action
yaml
- action: "Build Docker image"
type: "DOCKERFILE"
dockerfile_path: "Dockerfile"
context_path: "."
docker_image_tag: "$BUDDY_RUN_COMMIT"
build_args:
- "APP_VERSION=$BUDDY_RUN_COMMIT"