Custom build steps
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.3k
- Forks
- 1.5k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 48
Description
Is there a way to add custom build step(s), especially between the building of an image and pushing it to a registry?
I can think of multiple custom steps that I would love to add:
- Scanning the image for vulnerabilities
- Creating SBOM output
- Sending "slack" notifications
etc.
I saw another similar request, that was specific to SBOM: https://github.com/moby/buildkit/issues/2773
But it requires adding hard-coding the steps into Builkit code, or using custom frontend, which replaced the whole build process and not just adds an extra step.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is identified in the issue. Start by reading the related SBOM request in moby/buildkit#2773 and tracing the existing build and registry-push flow; done should provide a defined mechanism for custom steps between those phases, with coverage for the requested use cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, dockerfile, go
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100