terraform-provider-docker icon indicating copy to clipboard operation
terraform-provider-docker copied to clipboard

feat: Add support for build-secrets

Open emanuel-skrenkovic opened this issue 6 months ago • 0 comments

Enables passing of build-secrets through the 'secrets' block inside 'build'. The feature is only available when using Buildkit.

I don't have much knowledge as to how build secrets work, but I tried to follow how buildx does it and implement it here. This feature is something that pops up as a need often at my job.

If changes need to be made, I will try to accommodate. :)

Tested by installing the provider locally, pushing the secrets into files in the Dockerfile, and verifying that the values were passed through.

emanuel-skrenkovic avatar Feb 10 '24 19:02 emanuel-skrenkovic