mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.67k stars 495 forks source link

Docker Hub only serves the "latest"-image #518

Closed Husky110 closed 1 year ago

Husky110 commented 1 year ago

Describe the feature you'd like I would like to propose that everytime a new release-tag is made in GitHub it is also released on dockerhub. The current version breaks all videos, so I am not even able to revert to an older version to get my videos running. So the best practice for a new release would be that all releases are beeing uploaded to docker hub whereas the newest one also replaces the "latest" tag, but keeping all the old versions alive and not breaking anything. The very idea of docker is to let the user decide which version to run on...

Describe alternatives you've considered Not seeing my video beeing unable to load? I don't know what to write here... :)

Additional context None

mgogoulos commented 1 year ago

Great suggestion, just needs a plan and we can execute it. Can you prepare some instructions for the workflow?

Husky110 commented 1 year ago

To be honest - I have no freakin' clue how that stuff works... :D
But out of my head I would suggest the following:

Maybe you can contact Drakkan at this repo: https://github.com/drakkan/sftpgo he is running and maintaining an SFTP-server and I know from first-hand experience that he answers his tickets. So maybe you guys can link together and help each other out. :)

mgogoulos commented 1 year ago

thanks for the suggestion, i'll let this issue open and will try to find some time to implement

Adito5393 commented 1 year ago

Keep in mind the latest DockerHub news: Docker is deleting Open Source organisations. Maybe release the images to the GitHub repository?

mgogoulos commented 1 year ago

Keep in mind the latest DockerHub news: Docker is deleting Open Source organisations. Maybe release the images to the GitHub repository?

Thanks for the interest in this, we have a paid subscription to DockerHub since we started using it - plus of course the issue that arose is now resolved...

Adito5393 commented 1 year ago

Great to hear you have a paid subscription. I'd like to contribute by adding GitHub actions for automatically releasing Docker images with version tags. To avoid vendor lock-in with GitHub Actions YAML format, I'll write the build commands in a Bash file instead. This is a common practice with CI/CD tools. I'll ping you again when the PR draft is ready for review.

mgogoulos commented 1 year ago

Hi @Adito5393 , just saw the other PR, looks great! Will try to find some time to test it before I merge it.

And yes, definitely some help is needed. What you suggest is important, please go ahead and create a PR when you have the capacity. And as you probably have seen there's room for good optimizations, eg

Thanks and regards

Adito5393 commented 1 year ago

Hello @mgogoulos,

I have made minimal changes to PR #750. Kindly review and merge it when you have time. The changes are intended to automate an existing docker build and push process, and they should not cause any breaks. Please note that the optimizations you mentioned can be implemented without modifying the .github/workflows/docker-build-push.yml file.

Thank you!