mirror of
https://github.com/Luzifer/git-credential-vault.git
synced 2024-12-22 10:41:17 +00:00
[docs] Update Go tool installation for Go1.17
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f05762a5cf
commit
4cf0f286df
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ RUN set -ex \
|
|||
# docker build --build-arg VAULT_ADDR=${VAULT_ADDR} --build-arg VAULT_TOKEN=${VAULT_TOKEN} --no-cache .
|
||||
```
|
||||
|
||||
### Dockerfile example (go get)
|
||||
### Dockerfile example (go install)
|
||||
|
||||
In this example the `VAULT_TOKEN` is passed in through a build-arg which means you **MUST** revoke the token before pushing the image, otherwise you will be leaking an active credential!
|
||||
|
||||
|
@ -94,7 +94,7 @@ ARG VAULT_TOKEN
|
|||
|
||||
RUN set -ex \
|
||||
&& apk --no-cache add git \
|
||||
&& go get -u -v github.com/Luzifer/git-credential-vault \
|
||||
&& go install github.com/Luzifer/git-credential-vault@latest \
|
||||
&& git config --global credential.helper 'vault --vault-path-prefix secret/git-credentials'
|
||||
|
||||
RUN set -ex \
|
||||
|
|
Loading…
Reference in a new issue