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

Add GitHub Action for Automated Container Creation and Publication to GHCR #3

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

colino17
Copy link

The subject pull request adds a GitHub Action that will automatically generate and publish the Docker container to the Github Container Registry every time a new release is created in GitHub.

Example: ghcr.io/xury77/aircon:latest

This can be used as an alternative in addition to publishing on DockerHub.

If you find this simpler and would prefer to solely publish on the GHCR I can update the compose file as well.

@xury77 xury77 merged commit 953bde3 into xury77:master Jul 31, 2024
@xury77
Copy link
Owner

xury77 commented Jul 31, 2024

I just made first image, but I'm not sure what else should be changed in hassio/config.json file. Manually changed following lines in my HA instance:
"version": "latest",
"image": "ghcr.io/xury77/aircon",
The addon has been updated and seems to be working. Im not so familiar with this.

@colino17
Copy link
Author

I just made first image, but I'm not sure what else should be changed in hassio/config.json file. Manually changed following lines in my HA instance: "version": "latest", "image": "ghcr.io/xury77/aircon", The addon has been updated and seems to be working. Im not so familiar with this.

I don't use hassio personallly (I just use basic docker), but my understanding is that it's basically just a docker supervisor for installing containers. I took a look at the file you referenced and I think those lines you mentioned would be the only changes necessary to call the GHCR build instead of the dockerhub build.

@colino17 colino17 deleted the pipeline branch July 31, 2024 15:57
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