Sign inSign up

ritesh355/node-docker-push

By ritesh355

•Updated about 1 year ago

Image
0

233

ritesh355/node-docker-push repository overview

⁠🚀 Node Docker Push – CI/CD with GitHub Actions

This project demonstrates a simple Node.js app that is Dockerized and automatically pushed to Docker Hub using GitHub Actions.

⁠📦 What's Inside

  • 🛠️ Node.js app with index.js
  • 🐳 Dockerfile to build the image
  • 🤖 .github/workflows/docker.yml GitHub Actions workflow
  • 🔐 Uses secrets DOCKER_USERNAME and DOCKER_PASSWORD for secure login

⁠⚙️ GitHub Actions Workflow

Whenever you push to main, the workflow:

  1. Logs in to Docker Hub
  2. Builds the Docker image
  3. Tags it as latest
  4. Pushes it to:
    📦 Docker Hub Repo⁠

⁠🚀 Try it Yourself

git clone [email protected]:ritesh355/node-docker-push.git
cd node-docker-push
docker build -t ritesh355/node-docker-push .
docker run -p 3000:3000 ritesh355/node-docker-push

Tag summary

Content type

Image

Digest

sha256:55da522c5…

Size

42.9 MB

Last updated

about 1 year ago

docker pull ritesh355/node-docker-push