DEV Community

Deepanshu Udhwani
Deepanshu Udhwani

Posted on • Edited on

How to push changes to Production

Git amend

 git commit --amend 
Enter fullscreen mode Exit fullscreen mode

Create Branch

http://open-ci.mmt.com/view/DVOP/job/DVOP-Branch-Creation/
Enter fullscreen mode Exit fullscreen mode

Check Branch

git branch
Enter fullscreen mode Exit fullscreen mode

Git commit

git commit -m "RAILS-1483 CLUSTER CACHE"
Enter fullscreen mode Exit fullscreen mode

Git Push

git push origin HEAD:refs/for/___branch_name_______
Enter fullscreen mode Exit fullscreen mode

Once the gerrit link is generated ask for peer review and recieve a +2 on the same

Open jenkins to check the status by clicking on the link that got generated after +2

Then go back to ide

git pull origin __Branch__Name__
Enter fullscreen mode Exit fullscreen mode

Check out to integration and take a pull

git checkout integration

git pull origin integration
Enter fullscreen mode Exit fullscreen mode

Merge your changes to integration

**git commit -m "RAILS-1483 CLUSTER CACHE"**
Enter fullscreen mode Exit fullscreen mode

git merge --no-commit --no-ff origin/fb_branch_name

Git push in integration

 git push origin HEAD:refs/for/integration
Enter fullscreen mode Exit fullscreen mode

Open the gerrit link that got generated

Scroll down till you find the docker image link

Now open any one

http://ecs-jenkins.goibibo.com/job/~~gotrainspp~~/
https://ecs-jenkins.goibibo.com/job/~~gotrainspp1~~/
Enter fullscreen mode Exit fullscreen mode

Click build with parameters and Enter your image

Click on build enter name like integration-1456

Now test whatever changes you did on prodpp environment

Once done Do

git checkout release
git pull origin release
git pull origin release
Enter fullscreen mode Exit fullscreen mode

Now do git merge

 git merge --no-commit --no-ff origin/fb_branch_name
 git status
Enter fullscreen mode Exit fullscreen mode

Do git commit

 git commit -m "RAILS-1483 CLUSTER CACHE"
Enter fullscreen mode Exit fullscreen mode

Do git push for production

  git push origin HEAD:refs/for/integration
Enter fullscreen mode Exit fullscreen mode

Make your jira ticket dev complete and deployment ready

enter image description here

Make 2 tickets for deployment 1 for ECS and other for Kubernetes

like

http://jira.mmt.com/browse/RAILS-1483?jql=assignee%20%3D%20currentUser()%20AND%20resolution%20%3D%20unresolved%20ORDER%20BY%20priority%20DESC%2C%20created%20ASC

Once created

Send those urls to be approved by the manager

Once approved it'll be deployed on EDGE and will be live

  • [x] No thing in this blog is confidential or have any sensitive info

Top comments (0)