From 4cf0f286dfd622e0f8cd14861b0dfa52ccb192b4 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 22 Jan 2022 03:27:20 +0100 Subject: [PATCH] [docs] Update Go tool installation for Go1.17 Signed-off-by: Knut Ahlers --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ad1a73..70138e4 100644 --- a/README.md +++ b/README.md @@ -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 \