Repository navigation
feat: pass secrets to Container.Build and Directory.Build - #4971
Merged
Merged
Conversation
dolanor
marked this pull request as draft
April 18, 2023 10:59
dolanor
force-pushed
the
pass-secret-to-container-build
branch
4 times, most recently
from
April 18, 2023 21:24
6ba36ae to
93be4ad
Compare
dolanor
force-pushed
the
pass-secret-to-container-build
branch
from
April 18, 2023 21:51
93be4ad to
4fe94e2
Compare
dolanor
marked this pull request as ready for review
April 18, 2023 22:14
dolanor
force-pushed
the
pass-secret-to-container-build
branch
from
April 18, 2023 22:24
4fe94e2 to
e863c45
Compare
marcosnils
reviewed
Apr 19, 2023
dolanor
force-pushed
the
pass-secret-to-container-build
branch
from
April 19, 2023 21:23
e863c45 to
bd70109
Compare
TomChv
approved these changes
Apr 19, 2023
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
dolanor
force-pushed
the
pass-secret-to-container-build
branch
from
April 20, 2023 01:30
bd70109 to
5ea6513
Compare
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
dolanor
force-pushed
the
pass-secret-to-container-build
branch
from
April 20, 2023 01:57
5ea6513 to
b99bd46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Now you can pass secrets to a Dockerfile build like in docker with
RUN --mount=type=secret,id=xxx,dst=/run/secrets/xxxYou can use
Limitations
It will mount in
/run/secrets/<secret-id>, you cannot decide the target mount point with this current API.It could be improved later on and discussed on how the API should look like.