Continuous Delivery with Jenkins in Kubernetes Engine/abhishek2.sh
ZONE=$(gcloud compute project-info describe \
  --format="value(commonInstanceMetadata.items[google-compute-default-zone])")
REGION=$(gcloud compute project-info describe \
  --format="value(commonInstanceMetadata.items[google-compute-default-region])")
PROJECT_ID=$(gcloud config get-value project)



cd continuous-deployment-on-kubernetes/sample-app

git checkout -b new-feature
rm Jenkinsfile html.go main.go

wget https://raw.githubusercontent.com/Itsabhishek7py/GoogleCloudSkillsboost/refs/heads/main/Continuous%20Delivery%20with%20Jenkins%20in%20Kubernetes%20Engine/Jenkinsfile
wget https://raw.githubusercontent.com/Itsabhishek7py/GoogleCloudSkillsboost/refs/heads/main/Continuous%20Delivery%20with%20Jenkins%20in%20Kubernetes%20Engine/html.go
wget https://raw.githubusercontent.com/Itsabhishek7py/GoogleCloudSkillsboost/refs/heads/main/Continuous%20Delivery%20with%20Jenkins%20in%20Kubernetes%20Engine/main.go


sed -i "s/qwiklabs-gcp-01-2848c53eb4b6/$PROJECT_ID/g" Jenkinsfile

sed -i "s/us-central1-c/$ZONE/g" Jenkinsfile

git add Jenkinsfile html.go main.go

git commit -m "Version 2.0.0"

git push origin new-feature

git checkout -b canary

git push origin canary

git checkout master

git merge canary

git push origin master
