Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and publish Docker images to GitHub Container Registry #1133

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

joshk
Copy link
Collaborator

@joshk joshk commented Dec 7, 2023

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.

@joshk joshk force-pushed the try-github-actions branch from f1ce63d to cbf3a08 Compare December 7, 2023 23:05
@joshk joshk requested review from oestrich and jjcarstens December 7, 2023 23:45
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
run: mix deps.get

- name: Compiles without warnings
run: mix compile --warnings-as-errors
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bless your soul 😂

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha, i stole that from the Fly.io example one

@joshk joshk force-pushed the try-github-actions branch from cbf3a08 to c0c9978 Compare December 8, 2023 01:05
@joshk joshk force-pushed the try-github-actions branch from c0c9978 to 97ed39e Compare December 8, 2023 01:09
@joshk joshk merged commit 7436e63 into main Dec 8, 2023
5 checks passed
@joshk joshk deleted the try-github-actions branch December 8, 2023 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants