Browse Source

update for aks pipeline

staging
yusuf karatoprak 5 years ago
parent
commit
a31aba2f12
  1. 22
      azure-pipelines.eventhub.httpapi.host.yml

22
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

Loading…
Cancel
Save