From a31aba2f12293fc47ccdc8a46edde680c6d35293 Mon Sep 17 00:00:00 2001 From: yusuf karatoprak Date: Sat, 1 May 2021 14:22:23 +0300 Subject: [PATCH] update for aks pipeline --- azure-pipelines.eventhub.httpapi.host.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/azure-pipelines.eventhub.httpapi.host.yml b/azure-pipelines.eventhub.httpapi.host.yml index 9d98b5d..54b2734 100644 --- a/azure-pipelines.eventhub.httpapi.host.yml +++ b/azure-pipelines.eventhub.httpapi.host.yml @@ -1,19 +1,13 @@ -# Deploy to Azure Kubernetes Service -# Build and push image to Azure Container Registry; Deploy to Azure Kubernetes Service -# https://docs.microsoft.com/azure/devops/pipelines/languages/docker - trigger: - main - variables: - # Container registry service connection established during pipeline creation - dockerRegistryServiceConnection: 'be4690ca-0fbe-4473-a10e-c45c2a32a3c1' - imageRepository: 'voloeventhubhttpapihost' + dockerRegistryServiceConnection: 'b46a670b-6940-4de5-b6b1-b06f9dd1c849' + imageRepository: 'voloeventhubhttpapihost' containerRegistry: 'voloeventhubhttpapihost.azurecr.io' dockerfilePath: '**/Dockerfile.EventHub.HttpApi.Host' - tag: 'latest' + tag: '$(Build.BuildNumber)' # Agent VM image name vmImageName: 'ubuntu-latest' @@ -38,7 +32,7 @@ stages: tags: | $(tag) - - publish: manifests + - upload: manifests artifact: manifests - stage: Deploy @@ -47,23 +41,19 @@ stages: jobs: - deployment: Deploy - displayName: Deploy-HttpApi.Host - timeoutInMinutes: 60 # how long to run the job before automatically cancelling - cancelTimeoutInMinutes: 30 # how much time to give 'run always even if cancelled tasks' before stopping them + displayName: Deploy-HttpApi-Host pool: vmImage: $(vmImageName) - environment: 'voloeventhubhttpapihost.default' + environment: 'volosofteventhub-6504.default' strategy: runOnce: deploy: steps: - - task: KubernetesManifest@0 displayName: Deploy to Kubernetes cluster inputs: action: deploy - namespace: default manifests: | $(Pipeline.Workspace)/manifests/deployment.eventhub.httpapi.host.yml $(Pipeline.Workspace)/manifests/service.eventhub.httpapi.host.yml