Our CI/CD pipeline enables automated, efficient updates from development to live deployment on AWS EC2. Here's how it works in our project:
Code Development
Developers write and update code locally using tools like VS Code. This includes front-end changes, config updates, or any logic tied to the story generation app.
Code Push to GitHub
The updated code is pushed to a GitHub repository, which acts as the central source of truth and version control.
Jenkins CI/CD Trigger
A GitHub push automatically triggers a Jenkins pipeline (defined via Jenkinsfile).
Pipeline Execution in Jenkins
Jenkins performs the following automated steps:
Clones the GitHub repository.
Copies the code securely to the AWS EC2 instance via SSH.
Builds a Docker image using a multi-stage Dockerfile.
Runs the image inside a Docker container using Nginx to serve the front-end app.
Deployment on AWS EC2
The Docker container is deployed on an EC2 instance. The application is exposed via port 80 and is publicly accessible.
Live Application Update
The changes are now live on the AI Story Generator App, ensuring every deployment is fast, consistent, and automated—without manual intervention.
Code Development
Code push to github
Pipeline Execution in Jenkins
Deployment on AWS EC2
Live Application Update