Skip to content

TobiOlajumoke/DevSecOps-CICD-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Business Case Study: Implementation of CI-CD for Hello World

Myworks.xyz is a leading commercial bank in Nigeria with a strong reputation for service excellence, alternative delivery channel platform, strong corporate governance, top of the range IT infrastructure, and wide network expansion. The company has a presence in Africa, the UAE, China, USA, and the United Kingdom. The company has about 12,000 users using the Core business system and about 790 branches across the country.

The company has identified an issue around it’s solution delivery process and time-to-market and has commenced the adoption of Agile DevOps to address this issue. You have been hired as an Analyst, DevOps automation and your job include the setting up of CI-CD pipelines for upcoming projects. Details of your immediate task is as below

  1. Download the code for “Hello World” solution from https://github.com/chunglee-ochieze/HelloWorld
  2. Working on Azure DevOps, create a Git repository and check in the code
  3. Create and run an Azure Build Pipeline for the solution
  4. Create an Azure app service for the solution
  5. Create and run an Azure Release pipeline for the solution
  6. Confirm your deployment by browsing the app service URL

Task 1

  • I downloaded the zip file of the code Alt text

  • upziped it and pasted the code into a new folder and opened the folder using Visual Studio Code Alt text

Alt text

Task 2. Working on Azure DevOps, create a Git repository and check in the code

First thing is to create a project in AzureDevops

  • I named mine `Hello-World

  • I selected agile beacause the company has commenced the adoption of Agile DevOps to address it's solution delivery process and time-to-market Alt text

  • Navigate to repo then to files

  • Copy the code under Push an existing repository from command line

Alt text

  • refresh the webpage and we see the code Alt text

Task 3. Create and run an Azure Build Pipeline for the solution

  • Go to pipeline Alt text Alt text Alt text

I added Sonar cloud plugin to the organistaion I then went to https://www.sonarsource.com/products/sonarcloud/ to handle configurations

SonarCloud performs static code analysis, identifying potential bugs, vulnerabilities, and code smells, allowing you to address them early in the development process. By integrating SonarCloud into your CI/CD pipeline, you can ensure that your code meets industry standards and best practices, ultimately improving the overall quality and security of your software.

  • get a PAT token for the sonarcloud intergation Alt text
  • Intergtrated a service connection with sonarcloud
    Alt text

Alt text

Alt text

  • Let's build and add sonar cloud to othe agent job

Alt text

Alt text

Alt text

  • set the jobs up Alt text Alt text

Alt text

  • using sonacloud to recieve summary report of the above the code technical debts

Alt text

Task 4. Create an Azure app service for the solution

using the auzre portal i created:

  • A resource group
  • An app service plan

Then i created a Dotnet Webapp Alt text Alt text Alt text

Alt text

Task 5 Create and run an Azure Release pipeline for the solution

  • Go to release

Alt text

  • New pipeline Alt text

  • Select azure app service deployment Alt text

  • Configure Development environment task Alt text

  • Add artiact and enable continous intergration trigger Alt text

  • Create QA and Production app services Alt text Alt text

  • Upgrade pricing to have access to some feature such as deployment slot Alt text

  • create a staging production environment

Alt text Alt text Alt text

  • My Azure devop project and go to release pipeline

  • set QA task Alt text

  • I enabled pre-deployment approval Alt text

  • Production site before swaping with staging env slot Alt text Alt text

  • Setup Production staging environment
    Alt text Alt text Alt text

  • We need to swap stagingenv with Production Alt text

    • Alt text

    Select Source and target then swap

    • Alt text
    • Alt text

Our swap was sucessful let's see if it's up nd running in production server

Alt text

UP AND RUNNING

Alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published