Skip to content

Commit

Permalink
Fix kaniko docker secret mount point (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
theSaarco committed Sep 20, 2020
1 parent 44173f1 commit f0f80e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlrun/builder.py
Expand Up @@ -81,8 +81,8 @@ def make_kaniko_pod(
)

if secret_name:
items = [{"key": ".dockerconfigjson", "path": ".docker/config.json"}]
kpod.mount_secret(secret_name, "/root/", items=items)
items = [{"key": ".dockerconfigjson", "path": "config.json"}]
kpod.mount_secret(secret_name, "/kaniko/.docker", items=items)

if dockertext or inline_code or requirements:
kpod.mount_empty()
Expand Down

0 comments on commit f0f80e6

Please sign in to comment.