Build and publish Docker images to GitHub Container Registry #1133
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR uses GitHub Actions and Container Registry for testing and publishing Docker images.
By publishing Docker images we can reduce the complexity for setting up your own Nerves Hub.
This opens the door for people to use PaaS's to run Nerves Hub without having to clone the repo.
In fact, people can run Nerves Hub locally with a simple
docker pull ghcr.io/nerves-hub/nerves-hub
There is a little duplication with Circle CI as we are also running the tests here, but on the plus side, this whole test and build workflow takes half the time than Circle.
Docker images are only pushed to the Container Registry for the main branch (latest) and tags.