Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abdelrhman95/ci-cd-pipeline-on-gcp
Set up a complete continuous integration and deployment (CI/CD) pipeline on jenkins to GCP
https://github.com/abdelrhman95/ci-cd-pipeline-on-gcp
ci-cd dockerfile gcp gke-cluster jenkins kubernetes
Last synced: about 1 month ago
JSON representation
Set up a complete continuous integration and deployment (CI/CD) pipeline on jenkins to GCP
- Host: GitHub
- URL: https://github.com/abdelrhman95/ci-cd-pipeline-on-gcp
- Owner: abdelrhman95
- Created: 2023-11-04T20:06:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-05T04:37:33.000Z (about 1 year ago)
- Last Synced: 2023-12-05T05:33:53.727Z (about 1 year ago)
- Topics: ci-cd, dockerfile, gcp, gke-cluster, jenkins, kubernetes
- Language: HCL
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CI-CD-pipeline-on-GCP
Set up a complete continuous integration and delivery (CI/CD) pipeline on Jenkins to GCP# Overview
In this project, we deployed a simple Python web application using Jenkins CI/CD pipelines. The first pipeline is responsible for building the GCP infrastructure, and the second pipeline deploys the application to GKE cluster# Prerequisites
* GCP Account
* Terraform
* docker
* kubectl
* Jenkins# Usage
- Open Jenkins and copy the infra pipeline first to the script section
- then copy the deployment pipeline to the script section
- build the infra pipeline with parameters once it finishes the deployment pipeline will be triggered
* you will see something like this
![Screenshot from 2023-11-05 03-44-11](https://github.com/abdelrhman95/CI-CD-pipeline-on-GCP/assets/58826560/dd5837f4-6c3d-4bb3-8e4e-f90b10f99042)## Results
* ``` sh
curl EXTERNAL-IP: PORT![Screenshot from 2023-11-05 03-39-38](https://github.com/abdelrhman95/CI-CD-pipeline-on-GCP/assets/58826560/db3d50c3-712a-4b33-bce7-b1930e686d94)
# Conclusion
In conclusion, this repository serves as a demonstration of how to create an automated CI/CD pipline using Jenkins to automate GCP infra and deploy to GKE. By following the instructions in this repository, you can learn how to :
* Containerize a simple application written in Python
* Using jenkins CI/CD Platform to automate our cycle
* Using Artifact Registry to manage application container image
* Deployment will be on GKE
* Apply DevOps best practices by setting up a development environment# Contact
If you have any questions, please contact me at [email protected]