From e685a12f1f2ccf1f8819a2cc0898ee72274b0dee Mon Sep 17 00:00:00 2001 From: Vaibhav Patel Date: Thu, 22 Aug 2024 14:47:39 -0400 Subject: [PATCH] Add azurepipelines --- azure-pipelines.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..a40f0b5243 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,26 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: + - task: AzureCLI@2 + displayName: Build component binaries, containers and packages + inputs: + azureSubscription: aks deploy msi - dev + scriptType: bash + scriptLocation: inlineScript + inlineScript: | + set -euo pipefail + export DOCKER_BUILDKIT=1 + az acr login --name acsdevdeployment + IMAGE_REGISTRY=acsdevdeployment.azurecr.io ARCH=amd64 OUTPUT_TYPE=docker make build-ccm-image + IMAGE_TAG=$(git rev-parse --short=7 HEAD) + docker tag acsdevdeployment.azurecr.io/azure-cloud-controller-manager:$IMAGE_TAG acsdevdeployment.azurecr.io/azure-cloud-controller-manager:v1.29.vapa1.$IMAGE_TAG + docker push acsdevdeployment.azurecr.io/azure-cloud-controller-manager:v1.29.vapa1.$IMAGE_TAG \ No newline at end of file