Skip to content

iam-siva-prasad/Push-to-Docker-Hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Multi-Stage Pipeline

Overview This project leverages Docker Multi-Stage builds and GitHub Actions to automate the daily build and deployment of our website code. The pipeline runs scheduled tasks every day during non-business hours, ensuring the application remains up-to-date without impacting production operations. The latest Docker image is pushed to Docker Hub for easy distribution and deployment.

Git → GitHub Actions → Scheduled → Docker → Docker Hub.png

Key Features

Automated Daily Builds

Uses GitHub Actions to build the application image every day.

Multi-Stage Docker Builds

Optimizes image size and enhances security by separating build and runtime stages.

Push to Docker Hub

Publishes the latest image to Docker Hub for seamless deployment.

Scheduled Execution During Off-Hours

Runs outside business hours to minimize downtime and avoid service disruption.

Business Impact

By implementing this pipeline, we:

Reduce the risk of downtime for web services. Maintain consistent and reliable deployments. Improve operational efficiency. Ensure updates happen seamlessly outside of peak business hours.

Workflow Highlights

Trigger Types:

Daily schedule at 11:00 AM IST (05:30 UTC). On every push to the main branch. Manual trigger via workflow_dispatch.

Stages:

Build: Creates Docker image using multi-stage build. Test: Runs container and validates application health. Push: Tags and pushes image to Docker Hub.

Technologies Used

Docker (Multi-Stage Builds) GitHub Actions (CI/CD Automation) Docker Hub (Image Registry)

About

Automates daily website builds and deployments using Docker multi-stage builds and GitHub Actions. Runs scheduled tasks during off-hours and pushes optimized images to Docker Hub, ensuring uptime and efficient CI/CD.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors