I’m trying to develop a Docker action (https://github.com/dfreilich/pack-action), which would, in some cases, require Docker authentication. I’m trying to use it together with the Docker login action, but I seem to be unable to, because the login action writes it to the
/home/runner/.docker/config.json, while as a Docker container action, we are only able to access
/github/home/.docker/config.json. As such, whenever I log in outside of the scope of my action (even if I do it explicitly, running
docker login...), those credentials aren’t available to my action.
Is there any way for me, as the developer, to access the docker config written to the /home/runner directory? Alternatively, is there any other way I can take advantage of the docker login action/a straight
docker login from my action?