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
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