Skip to content

greycode02/MyFirstProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Automated CI/CD Pipeline with Jenkins on AWS

๐Ÿ“– Description

This project implements a complete CI/CD (Continuous Integration/Continuous Deployment) pipeline using Jenkins on AWS. The pipeline is automatically triggered by a Git push, building a Docker application, and pushing the image to Docker Hub. Infrastructure is managed as code using Terraform.

๐Ÿ“‹ Prerequisites

Before you begin, ensure you have the following:

  • An AWS account with appropriate permissions.
  • A Docker Hub account.
  • The following tools installed on your local machine:

๐Ÿ—๏ธ Architecture

CI/CD Architecture Diagram

The workflow is as follows:

  1. A developer pushes code to the main GitHub branch.
  2. GitHub sends a webhook notification to the Jenkins server.
  3. Jenkins pulls the latest code, including the Jenkinsfile.
  4. Jenkins executes the pipeline stages defined in the Jenkinsfile.
  5. The pipeline builds a new Docker image and pushes it to Docker Hub.

โš™๏ธ Setup & Installation

1. Terraform Infrastructure Provisioning

This repository uses Terraform to provision the Jenkins server on AWS.

Initialize Terraform:

terraform init

About

cicd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published