Potential for integration with the Github Package Repository?

One of the things we’ve struggled with previously is supporting code from multiple private repositories in one Balena App. There are some options to support that kind of workflow, but it’s not always ideal to put SSH keys in the Dockerfile.

I’m wondering what Balena’s plans are for integrating with Github’s Package Repository. Admittedly, I don’t know much about how it works yet, but I’m wondering if we’ll be able to host packages through our Balena remote and thereby get easy access to packages without having to load our Dockerfile with keys.

Alongside that, are there any other new workflows that the GPR would support?

Hey @nckswt, one thing you can do is add the ssh key as an environment variable as shown here https://www.balena.io/blog/use-a-raspberry-pi-to-communicate-with-amazon-aws-iot/#convertingthecertificatestobase64

Check the code of the AWS IoT project.

Please let me know if this helps!

1 Like

Are you talking about publishing to GitHub, or from GitHub?
I use GitLab to push my code to, which then runs a workflow and deploys my apps to containers.

We don’t have any defined plans for working with the GitHub package repository but we do have some long-term plans to make deployment of applications from GitHub a little easier. If you need any further help working with SSH keys other than what dansku posted let us know!