Improve podman build secrets docs / Makefile validatepr description #25111
+33
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
TL;DR:
podman build --secret
documentation and add examples.validatepr
tomake help
output.Details: After struggling to find a way to build an image without writing a secret to disk first, I did some hunting. This PR is basically a copy/paste from buildah-build.1, with some tweaks to appease the podman project linter and with the addition of some Examples. (I plan to submit a similar PR to containers/buildah to update the
--secret
help output and add the examples there as well).Note: This "Fixes" #23388 if you go strictly by the Title. However, if you read the comments, it looks like the OP is looking for something more along the lines of using
--secret
WITHOUT needing--mount=type=secret
modifications to a Containerfile. This is why I omitted the issue number from the commit description. I am more than willing to modify this if requested.Testing
make binaries
passesmake docs
passes and edits tosecret.image.md
appear inpodman-build.1.md
andpodman-farm-build.1.md
.make validatepr
passesmake help
showsvalidatepr
Does this PR introduce a user-facing change?