I'm trying to build some Docker images using GitHub Actions and need them to be available in my k3s cluster. I'm looking for the most cost-effective options, ideally free, for storing and retrieving these images. Specifically, I'd appreciate insights on different ways to push the images into k3s or possibly run an internal registry to avoid paying for services like GitHub or Docker Hub.
4 Answers
You can definitely deploy a pod or deployment that utilizes the image once it's in the k3s cluster, but make sure you have a storage solution in place.
If the images are open source, you can push them directly to GitHub Actions without needing a cluster for that. If they're private, GitHub has options, but it may come with some costs. The good news is, pulling and storing images can be free, regardless of the repository status.
Exactly! Just use GitHub Container Registry for your builds in GitHub Actions. It keeps it simple and you won't have to deal with complicated setups.
Don't forget that GitHub offers a free container registry! You can check out the documentation [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) for details.
Consider using Nexus as an option for hosting your images. It can help you manage your own container registry without the costs associated with public registries.
I realized I didn't provide enough context before. I want to build the images with GitHub Actions and store them somewhere free. I'm looking for ways to either push them to k3s directly or set up an internal registry instead of using paid services.