DevOps: auto deployment (git -- jenkins -- remote server)

preview_player
Показать описание
In CI/CD pipeline implementation, It's a common scenario that you deploy github code to remote server using jenkins. I started learning DevOps and CI/CD pipeline. This video is recorded while i deployed my first git repo to a remote server. I upload this video to help out those, who are new to DevOps and want to implement this scenario.

Here are the steps used in this scenario:

Step 1: Login to aws console and create an instance
Step 2: create ssh key for jenkins user at system where your jenkins server is running
Step 3: Add jenkins user's public ssh key to authorized keys in remote server
Step 4: create a jenkins job
Jenkins job will deploy code from github to remote server. In this example, I used very common approach poll SCM just to make it simple. You should use github hooks to notify jenkins about new commits on github and trigger jenkins job to deploy new commits to remote server.

You can drop your comments if your get stuck at any step. I'll happy to help you.
Рекомендации по теме
Комментарии
Автор

Hi thanks a lot..getting permsiion denied public key error after copying public key into remote server.While doing scp from jenkins to remote server..

poornimasridhar
Автор

hello bro can I have those doc files please?

Victoilavic
Автор

Dude awesome, can you please send document with me.

aarijkhan