CI/CD for building and pushing docker image [GSSOC]
Closed this issue · 4 comments
Describe the feature
Build a CI Pipeline using GitHub Actions to build and push to DockerHub the docker image from Dockerfile when needed.
Is your feature request related to a problem? Please describe. 💡
No, just to make an easier continuous integration environment and make the docker image available on dockerhub for easier running locally or on server.
Describe the solution you'd like âš¡
Build a pipeline that have at least two stages
- Build docker image from the existed Dockerfile
- Push docker image to the registry DockerHub
Expected behavior
on each commit or pull request, build and push docker image.
Screenshots
Pipeline Flowchart
Are you working on this feature? (Yes/No)
I would like to
@adityabisoi Can you add docker hub credentials in the repo secrets please ?
so I can reference them in the workflow file
Sure, they are named DOCKER_HUB_USERNAME
and DOCKER_HUB_ACCESS_TOKEN
@adityabisoi
I have built the pipeline and made a pull request.
pull request : #182
please merge the latest commit which is where I fixed the credentials issue mentioned in this pull request #183