Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 1.06 KB

azure-devops.md

File metadata and controls

36 lines (28 loc) · 1.06 KB

Deploy go-slalom with Azure DevOps

The azure-pipelines.yml in this repository defines an Azure DevOps build and deploy pipeline. It has the following stages:

  • Pull Request
    • runs unit-tests to verify pull-requests
  • Build
    • tag git repository and create pre-release
    • builds and pushes image to goslalom.azurecr.io
    • push pipeline artifacts for deployment
  • Deploy Dev
    • download artifacts
    • creates an image pull secret in kubernetes dev environment
    • uses aritifacts to create a service and deployment in kubernetes dev environment

azure pipeline

create registry and kubernetes resources in azure

To run the pipeline the following resource must be created

# Create a resource group
az group create --name go-slalom --location westus

# Create a container registry
az acr create --resource-group go-slalom --name go-slalom --sku Basic

# Create a Kubernetes cluster
az aks create \
    --resource-group go-slalom \
    --name go-slalom \
    --node-count 1 \
    --enable-addons monitoring \
    --generate-ssh-keys