Use dynamic VAULT_GIT_CREDENTIAL_PATH

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-12 13:08:53 +02:00
parent 530c66e721
commit fee57e7e30
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -7,7 +7,7 @@ ARG VAULT_TOKEN
RUN set -ex \ RUN set -ex \
&& apk --no-cache add git \ && apk --no-cache add git \
&& GOPATH=/usr/local go get -u -v github.com/Luzifer/git-credential-vault \ && GOPATH=/usr/local go get -u -v github.com/Luzifer/git-credential-vault \
&& git config --global credential.helper 'vault --vault-path-prefix secret/jenkins/git-credential' && git config --global credential.helper 'vault --vault-path-prefix {{ env `VAULT_GIT_CREDENTIAL_PATH` }}'
{{- end }} {{- end }}
COPY . /go/src/{{ .package }} COPY . /go/src/{{ .package }}