-
Notifications
You must be signed in to change notification settings - Fork 286
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
Improve documentation for --publish
flag
#1994
Comments
hey @mgreen-sm , i would like to work on this issue . could you please help me out to work on this , Thanks |
Documentation should also better explain how to set the credentials to publish the image created within the registry: quay.io, docker.io etc and how to get a more verbose message instead of
|
I want to work on this issue. Can any maintainer please assign this issue to me ? |
does this mean I have to add an example demonstrating how to use publish flag to push to a registry? |
Description
As a new user to Buildpacks, I found the documentation / help on the
build --publish
flag to be sparse. As a result, I was not fully aware of its function ("how to use it" and "what is it for"). The documentation / help merely states: "Publish to registry".This confused me, because the documentation / help also speaks of
registry
for multiple other options (config registry-mirror
,config registries
and also provides limited information about the--publish
flag for other options (builder create --publish
,buildpack package --publish
).Aside from being accustomed to
push
instead ofpublish
(Docker), I had related thebuild --publish
with the other options (resorting to an extradocker push ....
step in the pipeline).Only in the documentation itself, in the "App Developer Guide: Cache Images" section specifically, was it made clear that the
build --publish
would push the image the registry specified as part of the image name, and that it had no relation to other options (or would be published publicly somewhere not intended).Proposed solution
Use similar wording as in the Docker documentation to clarify the purpose of
build --publish
:This should answer both the "what is it for" and "how to use it".
The last line in the example above ("Refer to ...") may also apply to the
--cache-image
option, so could be consolidated in the help / documentation as with Docker's documentation.Additionally, expand the "App Developer Guide" to include an example similar to the "Cache Images" section.
Additional context
pack build --publish
due to sparsityThe text was updated successfully, but these errors were encountered: