dockerode
dockerode copied to clipboard
Support build secrets with buildkit (version 2)
Hello here! I notice that the latest support for buildkit https://github.com/apocas/dockerode/pull/766 didn't cover the ability to express secrets in the build request. This PR covers this gap by following the already implemented pattern and adding an additional option to the buildImage method.
Secrets can be passed as a map of secretId : Buffer.
Hi,
Thank you for your time :)
Could you please check the tests: https://github.com/apocas/dockerode/actions/runs/20104364824/job/57847453313?pr=821#step:6:462
Best regards,