Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Jenkins-Pipeline-Code/Jenkinsfile-Backend
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pipeline {
}
stage('Checkout from Git') {
steps {
git credentialsId: 'GITHUB', url: 'https://github.com/AmanPathak-DevOps/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
git credentialsId: 'GITHUB', url: 'https://github.com/hari-akkinapalli/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
}
}
stage('Sonarqube Analysis') {
Expand Down Expand Up @@ -82,20 +82,20 @@ pipeline {
}
stage('Checkout Code') {
steps {
git credentialsId: 'GITHUB', url: 'https://github.com/AmanPathak-DevOps/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
git credentialsId: 'GITHUB', url: 'https://github.com/hari-akkinapalli/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
}
}
stage('Update Deployment file') {
environment {
GIT_REPO_NAME = "End-to-End-Kubernetes-Three-Tier-DevSecOps-Project"
GIT_USER_NAME = "AmanPathak-DevOps"
GIT_USER_NAME = "hari-akkinapalli"
}
steps {
dir('Kubernetes-Manifests-file/Backend') {
withCredentials([string(credentialsId: 'github', variable: 'GITHUB_TOKEN')]) {
sh '''
git config user.email "aman07pathak@gmail.com"
git config user.name "AmanPathak-DevOps"
git config user.email "anvharikrishna@gmail.com"
git config user.name "hari-akkinapalli"
BUILD_NUMBER=${BUILD_NUMBER}
echo $BUILD_NUMBER
imageTag=$(grep -oP '(?<=backend:)[^ ]+' deployment.yaml)
Expand All @@ -110,4 +110,4 @@ pipeline {
}
}
}
}
}
12 changes: 6 additions & 6 deletions Jenkins-Pipeline-Code/Jenkinsfile-Frontend
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pipeline {
}
stage('Checkout from Git') {
steps {
git credentialsId: 'GITHUB', url: 'https://github.com/AmanPathak-DevOps/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
git credentialsId: 'GITHUB', url: 'https://github.com/hari-akkinapalli/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
}
}
stage('Sonarqube Analysis') {
Expand Down Expand Up @@ -82,20 +82,20 @@ pipeline {
}
stage('Checkout Code') {
steps {
git credentialsId: 'GITHUB', url: 'https://github.com/AmanPathak-DevOps/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
git credentialsId: 'GITHUB', url: 'https://github.com/hari-akkinapalli/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git'
}
}
stage('Update Deployment file') {
environment {
GIT_REPO_NAME = "End-to-End-Kubernetes-Three-Tier-DevSecOps-Project"
GIT_USER_NAME = "AmanPathak-DevOps"
GIT_USER_NAME = "hari-akkinapalli"
}
steps {
dir('Kubernetes-Manifests-file/Frontend') {
withCredentials([string(credentialsId: 'github', variable: 'GITHUB_TOKEN')]) {
sh '''
git config user.email "aman07pathak@gmail.com"
git config user.name "AmanPathak-DevOps"
git config user.email "anvharikrishna@gmail.com"
git config user.name "hari-akkinapalli"
BUILD_NUMBER=${BUILD_NUMBER}
echo $BUILD_NUMBER
imageTag=$(grep -oP '(?<=frontend:)[^ ]+' deployment.yaml)
Expand All @@ -110,4 +110,4 @@ pipeline {
}
}
}
}
}
4 changes: 2 additions & 2 deletions Jenkins-Server-TF/backend.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
terraform {
backend "s3" {
bucket = "my-ews-baket1"
bucket = "three-tier-devsecops"
region = "us-east-1"
key = "End-to-End-Kubernetes-Three-Tier-DevSecOps-Project/Jenkins-Server-TF/terraform.tfstate"
dynamodb_table = "Lock-Files"
Expand All @@ -13,4 +13,4 @@ terraform {
source = "hashicorp/aws"
}
}
}
}
4 changes: 2 additions & 2 deletions Jenkins-Server-TF/variables.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ subnet-name = "Jenkins-subnet"
rt-name = "Jenkins-route-table"
sg-name = "Jenkins-sg"
instance-name = "Jenkins-server"
key-name = "Aman-Pathak"
iam-role = "Jenkins-iam-role"
key-name = "IronMan"
iam-role = "Jenkins-iam-role"
2 changes: 1 addition & 1 deletion Kubernetes-Manifests-file/Frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
- name: ecr-registry-secret
containers:
- name: frontend
image: 407622020962.dkr.ecr.us-east-1.amazonaws.com/frontend:3
image: 407622020962.dkr.ecr.us-east-1.amazonaws.com/frontend:11
imagePullPolicy: Always
env:
- name: REACT_APP_BACKEND_URL
Expand Down