I’m playing with the automated build of add-ons using GitHub actions and publishing them to GitHub Packages Docker Registry. Basically my idea is to have a fully automated add-on repo that is only dependent on GH, so I don’t have to deal with storing secrets on the CI/CD server.
The GH Packages Docker Registry doesn’t allow me to pull container images anonymously, without logging in first. However, the hassio supervisor doesn’t support login, even if I’m logged in on the host machine using docker login docker.pkg.github.com
. The SDK that the supervisor uses to talk to the docker daemon does have login method and it even supports logging in using the ~/.docker/config.json
populated by using docker login
.
My idea would be to populate the config.json from the host machine to the supervisor container, iterate through all the defined repos insite and one-by-one log in into each after the client gets initialised.
Would be something like this welcome as a PR?