Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit c1c03c6

Browse files
committed
Fix env variables in go runtime
1 parent 231c033 commit c1c03c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go-1.x/buildtemplate.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
default: ""
2929
- name: SSH_KEY
3030
description: Name of ssh key file to authenticate in private git repository
31-
default: git-ssh-key
31+
default: "git-ssh-key"
3232
steps:
3333
- name: dockerfile
3434
image: gcr.io/kaniko-project/executor@sha256:30ba460a034a8051b3222a32e20cb6049741e58384e3adf8c8987c004e2f2ab9
@@ -49,9 +49,9 @@ spec:
4949
5050
WORKDIR /go/src/handler
5151
COPY . .
52-
RUN if [ -f "$HOME/.ssh/id_$SSH_KEY" ]; then \
52+
RUN if [ -f "$HOME/.ssh/id_${SSH_KEY}" ]; then \
5353
eval "\$(ssh-agent -s)"; \
54-
ssh-add $HOME/.ssh/id_$SSH_KEY; \
54+
ssh-add $HOME/.ssh/id_${SSH_KEY}; \
5555
fi \
5656
&& if [ -f "Gopkg.toml" ]; then dep ensure; fi \
5757
&& go get -v \

0 commit comments

Comments
 (0)