File tree Expand file tree Collapse file tree
content/manuals/build/building Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,12 +265,12 @@ $ docker build \
265265 https://github.com/example/todo-app.git
266266```
267267
268- ## HTTP authentication for ` COPY ` and ` ADD `
268+ ## HTTP authentication for ` ADD `
269269
270- To use secrets in ` COPY ` or ` ADD ` commands, you can create
271- ` HTTP_AUTH_TOKEN_<host> ` or ` HTTP_AUTH_HEADER_<host> ` secrets for use when
272- accessing the specified host. For example ` HTTP_AUTH_TOKEN_127.0.0.1=token ` will
273- make requests to ` 127.0.0.1 ` add a header ` Authorization: Bearer token ` .
270+ To use secrets in ` ADD ` commands you can create ` HTTP_AUTH_TOKEN_<host> ` or
271+ ` HTTP_AUTH_HEADER_<host> ` secrets for use when accessing the specified host. For
272+ example ` HTTP_AUTH_TOKEN_127.0.0.1=token ` will make requests to ` 127.0.0.1 ` add
273+ a header ` Authorization: Bearer token ` .
274274
275275These variables follow the same convention as the [ Git HTTP authentication
276276scheme] ( #http-authentication-scheme ) handling.
You can’t perform that action at this time.
0 commit comments