[pipelines]: Allow customizing the CodeBuild project for building Docker images #13645
Labels
@aws-cdk/aws-codebuild
Related to AWS CodeBuild
@aws-cdk/pipelines
CDK Pipelines library
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
p1
Milestone
Allow the user to specify environment variables, build images etc. for how Docker images are built with CDK pipelines.
Use Case
I have a Docker image that requires
DOCKER_BUILDKIT=1
set. I would also like to update the environment image fromaws/codebuild/standard:4.0
toaws/codebuild/standard:5.0
. I don't see easy ways to do this right now, and dropping down from automatic builds with cdk-pipelines to configuring your own CodeBuildActions seems like a fairly big refactoring.Proposed Solution
I don't have a proposed API for this; the current "automagic" configuration of Docker builds via Stages doesn't really surface any hooks to us where we could add customization options. Some options would be:
CdkPipeline
itself with high-level configuration properties for building assets.CdkPipeline
to get the build projects for each assets and let the user configure them directly.This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: