You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You get a secret with spec.data -> .dockerconfigjson not config.json. This causes ko to not know which credentials to use.
This requires the tekton ko tasks to rename and move the .dockerconfigjson mounted into a volume to ~/.docker/config.json
Actual Behavior
It looks for a config.json key inside the secret
Steps to Reproduce the Problem
create a secret with the command specified above
try to use the ko task to publish a container to docker hub
Additional Info
This kind of issues are really frustrating for newbies and also for experienced people .. it is not easy to debug.
Related to this issue, is the fact that if any of the credentials have sensitive characters like $ when creating the secret these characters will not be escaped and they will fail the encoding leading to situations where the credentials sent to docker hub are wrong. It might be good to have some docs around that to save people time.
The text was updated successfully, but these errors were encountered:
This can also be solved by extending the task with the DOCKER_CONFIG parameter.. which allows us to set up the path for the .docker/config.json file, still we will need to rename the file to config.json
It has not been solved yet because of maintainers time. Essentially, the idea would be to bump the Task to a 0.2 and use scripts to do something similar to what we do here.
Expected Behavior
The
ko
task should use the.dockerconfigjson
to set credentials forko
When creating a secret with:
You get a secret with
spec.data
->.dockerconfigjson
notconfig.json
. This causesko
to not know which credentials to use.This requires the tekton
ko
tasks to rename and move the.dockerconfigjson
mounted into a volume to~/.docker/config.json
Actual Behavior
It looks for a
config.json
key inside the secretSteps to Reproduce the Problem
ko
task to publish a container to docker hubAdditional Info
This kind of issues are really frustrating for newbies and also for experienced people .. it is not easy to debug.
Related to this issue, is the fact that if any of the credentials have sensitive characters like
$
when creating the secret these characters will not be escaped and they will fail the encoding leading to situations where the credentials sent to docker hub are wrong. It might be good to have some docs around that to save people time.The text was updated successfully, but these errors were encountered: