Merge pull request #20347 from dvdksn/remote-ctx-example-cleanup

build: clean up remote auth example with secrets
This commit is contained in:
David Karlsson 2024-07-03 11:07:45 +02:00 committed by GitHub
commit 730710d499
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ A build secret is any piece of sensitive information, such as a password or API
token, consumed as part of your application's build process.
Build arguments and environment variables are inappropriate for passing secrets
to your build, because they persist in the final image. Instead, should use
to your build, because they persist in the final image. Instead, you should use
secret mounts or SSH mounts, which expose secrets to your builds securely.
## Secret mounts
@ -135,9 +135,9 @@ fails because the builder isn't authorized to pull the repository:
```console
$ docker build https://gitlab.com/example/todo-app.git
[+] Building 0.4s (1/1) FINISHED
=> ERROR [internal] load git source https://gitlab.com/dvdk/todo-app.git
=> ERROR [internal] load git source https://gitlab.com/example/todo-app.git
------
> [internal] load git source https://gitlab.com/dvdk/todo-app.git:
> [internal] load git source https://gitlab.com/example/todo-app.git:
0.313 fatal: could not read Username for 'https://gitlab.com': terminal prompts disabled
------
```