MlOps &DevOps AL TASK 1
❗️TASK-1❗️
JOB#1
If Developer push to dev branch then Jenkins will fetch from dev and deploy on dev-docker environment.
JOB#2
If Developer push to master branch then Jenkins will fetch from master and deploy on master-docker environment.
both dev-docker and master-docker environment are on different docker containers.
JOB#3
Manually the QA team will check (test) for the website running in dev-docker environment. If it is running fine then Jenkins will merge the dev branch to master branch and trigger #job 2
Requirements For The Task :-
- Configure the Jenkins server .
- Create the GitHub Account .
- Configure the Git Software in the Local System .
- Configure the Docker Environment .
Let's Start first we have to create the repository on the GitHub.
After, That we need to clone it into the our local SCM system "Git", so we have to run the Git bash .
After that we need to create the set the hooks like "post commit" in the ".git" repository.
After that we have to configure the another branch called "Dev" for some testing purpose.
After that we have to setup the our first job
job 1
Save it and configure the job 2 similarly .
Job 2
Save this job .
After that we have to configure the job 3.
Job 3
save this job and push the code to the git hub.
in the above screenshot we see the both environment created.
!!! TASK COMPLETED !!!
!!! THANK YOU FOR READING !!!