Description
As of now, moja global docker images are put in Docker Hub by different people with their accounts so it's hard to have control over that. Also, there are no Continuous integration workflows set up in the repository so the images are not able to update when there is a new release in the project.
To overcome this problem let's have a consistent platform to put our docker images. I would just let's publish the docker images to the GitHub container registry. Also, we will add Continuous integration workflows to make the docker images updated.
GitHub container registry is a part of GitHub Packages. It is a software package hosting service that allows you to host your software packages privately or publicly and use packages as dependencies in your projects.
To automate the task we will need two Github Action i.e. docker-image.yaml
which will build a docker image to deploy, run, or push to a registry, and docker-publish.yaml
which will build, test, and push docker image to GitHub container registry.
These two actions will run whenever there is a push to the main
or master
branch or we can also set a cron job to run these two actions.