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

frontend/dockerfile/docs: add $ in mount env example #5333

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

ryio1010
Copy link
Contributor

I added $ in 'Example: Mount as environment variable' sample command because it is needed to refer to env.

Signed-off-by: ryio1010 <info@ryio1010.com>
@@ -842,7 +842,7 @@ environment variable with the same name.
# syntax=docker/dockerfile:1
FROM alpine
RUN --mount=type=secret,id=API_KEY,env=API_KEY \
some-command --token-from-env API_KEY
some-command --token-from-env $API_KEY
Copy link
Member

@crazy-max crazy-max Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iiuc current is the name of the var that would then be solved within some-command logic. cc @dvdksn

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that was the idea, but I admit that it isn't really a great example. Any better suggestions are welcome

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for reviewing, and I see.
I have no idea with alternative great example for now🙏

@tonistiigi tonistiigi merged commit 23a2b6f into moby:master Sep 19, 2024
31 checks passed
billywr pushed a commit to billywr/buildkit that referenced this pull request Sep 23, 2024
 frontend/dockerfile/docs: add $ in mount env example

Signed-off-by: Billy Owire <billyowire95@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants