Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom build steps #2840

Open
jerbia opened this issue Apr 30, 2022 · 1 comment
Open

Custom build steps #2840

jerbia opened this issue Apr 30, 2022 · 1 comment

Comments

@jerbia
Copy link

jerbia commented Apr 30, 2022

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: #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.

@tonistiigi
Copy link
Member

I'm not sure what you mean exactly in here. Frontends is a component in BuildKit how to include any custom behavior as part of your build and frontends can call other frontends etc. so composition is possible. Inside the frontend you can have as many "build steps" as you want of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants