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

Commit baf2efc

Browse files
committed
Overwrite default config path, #30
1 parent dfe6497 commit baf2efc

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

go-1.x/buildtemplate.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ spec:
7575
- --context=/workspace/${DIRECTORY}
7676
- --dockerfile=/workspace/${DIRECTORY}/Dockerfile
7777
- --destination=${IMAGE}:${TAG}
78+
# Workaround not to use default config which requires gcloud credentials
79+
# to pull base image from public gcr registry
80+
# https://groups.google.com/d/msg/kaniko-users/r5yoP_Ejm_c/ExoEXksDBAAJ
81+
env:
82+
- name: DOCKER_CONFIG
83+
value: "/"

node-10.x/buildtemplate.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ spec:
5151
- --context=/workspace/${DIRECTORY}
5252
- --dockerfile=/workspace/${DIRECTORY}/Dockerfile
5353
- --destination=${IMAGE}:${TAG}
54+
# Workaround not to use defaul config which requires gcloud credentials
55+
# to pull base image from public gcr registry
56+
# https://groups.google.com/d/msg/kaniko-users/r5yoP_Ejm_c/ExoEXksDBAAJ
57+
env:
58+
- name: DOCKER_CONFIG
59+
value: "/"

node-4.x/buildtemplate.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ spec:
5151
- --context=/workspace/${DIRECTORY}
5252
- --dockerfile=/workspace/${DIRECTORY}/Dockerfile
5353
- --destination=${IMAGE}:${TAG}
54+
# Workaround not to use default config which requires gcloud credentials
55+
# to pull base image from public gcr registry
56+
# https://groups.google.com/d/msg/kaniko-users/r5yoP_Ejm_c/ExoEXksDBAAJ
57+
env:
58+
- name: DOCKER_CONFIG
59+
value: "/"

python-2.7/buildtemplate.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ spec:
5252
- --context=/workspace/${DIRECTORY}
5353
- --dockerfile=/workspace/${DIRECTORY}/Dockerfile
5454
- --destination=${IMAGE}:${TAG}
55+
# Workaround not to use defaul config which requires gcloud credentials
56+
# to pull base image from public gcr registry
57+
# https://groups.google.com/d/msg/kaniko-users/r5yoP_Ejm_c/ExoEXksDBAAJ
58+
env:
59+
- name: DOCKER_CONFIG
60+
value: "/"

python-3.7/buildtemplate.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ spec:
5252
- --context=/workspace/${DIRECTORY}
5353
- --dockerfile=/workspace/${DIRECTORY}/Dockerfile
5454
- --destination=${IMAGE}:${TAG}
55+
# Workaround not to use defaul config which requires gcloud credentials
56+
# to pull base image from public gcr registry
57+
# https://groups.google.com/d/msg/kaniko-users/r5yoP_Ejm_c/ExoEXksDBAAJ
58+
env:
59+
- name: DOCKER_CONFIG
60+
value: "/"

0 commit comments

Comments
 (0)