galette-community / docker

Membership management web application towards non profit organizations, in a Docker container !
https://hub.docker.com/repository/docker/galette/galette
GNU General Public License v3.0
5 stars 2 forks source link

Setup CI #10

Closed trasher closed 5 months ago

trasher commented 5 months ago

Github actions certainly provide a way to build docker images, I think it would be a good idea to setup that here; testing a simple build on each commit would prevent issues.

trasher commented 5 months ago

This may be of interest: https://docs.github.com/en/actions/publishing-packages/publishing-docker-images

trasher commented 5 months ago

I do not know if you need access to docker hub project (https://hub.docker.com/repository/docker/galette/galette/general). I f you do, made a request to join (or give me your user name on their platform).

grasdk commented 5 months ago

Not sure, but I think it is probably necessary to be allowed to upload. Feel free to invite me. We can also wait until I bump into problems ;) My dockerhub name is also grasdk ;)

grasdk

user Joined March 20, 2024

grasdk commented 5 months ago

@trasher. I'm looking into this and getting a bit further. I'm creating / copying github actions for automatically building and deploying a docker image on release.

I got to this part: https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions where it wants me to create a secret for docker-hub so that github actions in this git-repo can publish a built image to docker hub.. I don't have the necessary permissions for this. I don't have the secrets menu under repository settings. image Screenshot from setting of a repo that I own.

Would you be able to help on that, either by grating me the access here, or by entering credentials for Docker Hub?:

DOCKER_USERNAME DOCKER_TOKEN This would be your username and a PAT generated by you, if you do it.

Let me know how you want to proceed. We can also communicate more privately over discord, if that's better :)

trasher commented 5 months ago

I've granted you admin access. Doing that setup on my side is not the easier way for you to work ;-)

You can ping me here or on discord, I have no preference (prefer discord for confidentiality, I also may be a little bit more reactive).

Let me know if all is OK ;)

grasdk commented 5 months ago

Thanks. All is OK :)

grasdk commented 5 months ago

Auto publish on release seems to be working. V1.0.0 was released this way. Will continue testing with V1.0.1-V1.0.4 very soon.