Skip to content

CI/CD pipeline using Jenkins, Terraform, and Google Cloud Platform (GCP), designed to streamline the deployment process while ensuring reliability and scalability.

License

Notifications You must be signed in to change notification settings

RashadTanjim/cloudops-automator

Repository files navigation

CI/CD Pipeline - Cloud Automator

This project demonstrates a fully automated CI/CD pipeline using Jenkins, Terraform, and Google Cloud Platform (GCP). It is designed to streamline the deployment process while ensuring reliability and scalability.

Technologies Used

  • Terraform: Infrastructure as Code (IaC) for provisioning cloud resources.
  • Jenkins: Automating build, test, and deployment processes.
  • Docker: Containerization of applications for portability.
  • Google Kubernetes Engine (GKE): Orchestrating containerized workloads.
  • Google Artifact Registry: Storing and managing Docker images.

Setup Instructions

Enable Required Google Cloud APIs

Before running Terraform, enable the necessary APIs:

gcloud services enable container.googleapis.com
gcloud services enable cloudresourcemanager.googleapis.com

Infrastructure Deployment with Terraform

Ensure Terraform is installed and authenticated with GCP. Then, deploy the infrastructure:

terraform init
terraform apply -auto-approve

Jenkins Configuration

  • Install the following Jenkins plugins:
    • Blue Ocean (for modern UI and pipeline visualization)
    • Terraform (to integrate with Terraform)
    • Docker (to build and push images)
  • Authenticate Jenkins with GCP to push Docker images:
gcloud auth configure-docker asia-southeast1-docker.pkg.dev

CI/CD Pipeline

The Jenkinsfile defines the complete CI/CD pipeline, including:

  • Code Checkout: Fetching source code from version control.
  • Build & Test: Running unit tests and security scans.
  • Containerization: Building Docker images.
  • Artifact Management: Pushing images to Google Artifact Registry.
  • Deployment: Deploying to GKE.

Features:

✔️ Infrastructure as Code (IaC) with Terraform
✔️ Automated deployments with Jenkins
✔️ Managing containerized applications on GKE
✔️ Secure artifact storage with Google Artifact Registry
✔️ End-to-end CI/CD implementation


About

CI/CD pipeline using Jenkins, Terraform, and Google Cloud Platform (GCP), designed to streamline the deployment process while ensuring reliability and scalability.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published