Ensure you’ve configured the following GitHub repository secrets:
DOCKERHUB_USERNAMEDOCKERHUB_TOKENMONGO_URI,MONGO_USERNAME,MONGO_PASSWORD
Updated Workflow Snippet
Add these three steps to your.github/workflows/ci.yml:
Step-by-Step Breakdown
Inspecting the Push Logs
During the Docker Push step you’ll see output similar to:Verify the Image on Docker Hub
Once the workflow completes:- Go to your repository on Docker Hub.
- Look under Tags for the SHA-based tag (e.g.,
e8095fb98a5b01249548095eaf3a9c371c274430).
If you see authentication errors, double-check that
DOCKERHUB_TOKEN is up to date and has the correct permissions.