moby / moby/buildkit

Custom build steps

Open
#2,840 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.