-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to use HTTP header with ADD command #4229
Comments
@tonistiigi @AkihiroSuda ptal |
I suggest using RUN --mount=type=secret curl |
@AkihiroSuda umm what is that? can you link to docs so other people can find it easily? |
$ docker build --secret id=token,src=token.txt ... Dockerfile: # syntax = docker/dockerfile:1-experimental
FROM ...
...
RUN --mount=type=secret,id=token,dst=/token.txt \
curl -H "Authorization: token $(cat /token.txt)" ... |
right but we can use a multi-stage build to get rid of the secrets or whatever, this issue is more about how to ADD with http headers instead of just a url, something like:
|
Let me transfer this ticket to the BuildKit issue tracker, which is where the Dockerfile syntax is now maintained. |
In light of the Github API changes:
https://developer.github.com/changes/2/ (https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/)
this won't really work in the near future:
instead we are gonna have to do:
is there a way to use a header with ADD or should we just use curl?
The text was updated successfully, but these errors were encountered: