Continuous Integration With Azure DevOps

 Continuous Integration With Azure DevOps

We are going to build a continuous integration pipeline with Azure Pipelines to automate the build and verification process for a TodoService.

Introduction

In our previous tutorial, we built a simple Ballerina microservice that returns a JSON array of Todo list items. There, we did everything manually from building the project, generating a Docker image, and pushing it to Azure Container Registry and deploying it into Azure Kubernetes Service.

Although that provided you with a simple starter project, you need a production-grade continuous integration (CI) and continuous deployment (CD) pipelines to make the shipping of developer changes to produce more reliable, repeatable, and frequent.

In the scope of this tutorial, we are going to build a continuous integration pipeline with Azure Pipelines to automate the build and verification process for the TodoService we’ve implemented in the previous tutorial. During the tutorial, you will:

  1. Create a project and a pipeline in Azure Pipelines.
  2. Connect a GitHub repo to the pipeline
  3. Create a private container registry in Azure Container Registry (ACR) to store the TodoService Docker image
  4. Create an Azure AD service principal to authenticate the pipeline against ACR
  5. Create a Docker registry service connection to connect the pipeline to ACR
  6. Code the pipeline to build the TodoService project, generate a Docker image and push it to ACR

If you have missed the first part of the series, you can find it here.

Prerequisites

  • A GitHub account, where you can create a repository. If you don’t have one, you can create one for free.
  • An Azure DevOps organization. If you don’t have one, you can create one for free.
  • An Azure account. If you don’t have one, you can create one for free.
  • Installation of Docker and Azure CLI in your local workstation.

continuous integration microservice ballerina azure devops devops

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Measuring DevOps Metrics: A How-To Guide

DevOps is supposed to help streamline the process of taking code changes and getting them to production for users to enjoy. But what exactly does it mean for the process to be "streamlined"? One way to answer this is to start measuring metrics.

Setting up Continuous Delivery with Azure DevOps directly from Azure VMs

You can set up the Continuous Delivery with Azure DevOps directly from Azure VMs. Azure DevOps provides us a robust mechanism for Continuous Integration and Continuous Delivery. Azure DevOps also simplifies the setting up a deployment for Azure VMs where you wanted to have your code hosted as an IaaS environment.

Create, Build, Deploy and Configure an Azure Function with Azure DevOps and Azure CLI

How to create, build, deploy and configure an Azure Function using Azure DevOps, Azure CLI and Powershell.

DevOps Rewind - 3 | What is Continuous Integration | DevOps Tutorial | DevOps Training

🔥Edureka DevOps Training: https://www.edureka.co/devops-certification-training This Edureka video on Continuous Integration explains the concept of Continuou

Deploy a Single Page Application to Azure Storage using Azure Pipelines

In this article I will explain how to deploy a single page application to azure and use the “Static Website” feature of Azure Storage Accounts, also I will show you how to change some variables values in a JSON file during deployment.For this article I assume that you have already: An Azure (Portal) Account (and created a subscription and a resource group), An Azure DevOps Account (and a project configured).