xury77 / AirCon

Scripts for controlling Air Conditioners, e.g. with HiSense modules.
GNU General Public License v3.0
0 stars 1 forks source link

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

Closed colino17 closed 3 months ago

colino17 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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.