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: trigger:
- main - main
variables: variables:
# Container registry service connection established during pipeline creation dockerRegistryServiceConnection: 'b46a670b-6940-4de5-b6b1-b06f9dd1c849'
dockerRegistryServiceConnection: 'be4690ca-0fbe-4473-a10e-c45c2a32a3c1' imageRepository: 'voloeventhubhttpapihost'
imageRepository: 'voloeventhubhttpapihost'
containerRegistry: 'voloeventhubhttpapihost.azurecr.io' containerRegistry: 'voloeventhubhttpapihost.azurecr.io'
dockerfilePath: '**/Dockerfile.EventHub.HttpApi.Host' dockerfilePath: '**/Dockerfile.EventHub.HttpApi.Host'
tag: 'latest' tag: '$(Build.BuildNumber)'
# Agent VM image name # Agent VM image name
vmImageName: 'ubuntu-latest' vmImageName: 'ubuntu-latest'
@ -38,7 +32,7 @@ stages:
tags: | tags: |
$(tag) $(tag)
- publish: manifests - upload: manifests
artifact: manifests artifact: manifests
- stage: Deploy - stage: Deploy
@ -47,23 +41,19 @@ stages:
jobs: jobs:
- deployment: Deploy - deployment: Deploy
displayName: Deploy-HttpApi.Host 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
pool: pool:
vmImage: $(vmImageName) vmImage: $(vmImageName)
environment: 'voloeventhubhttpapihost.default' environment: 'volosofteventhub-6504.default'
strategy: strategy:
runOnce: runOnce:
deploy: deploy:
steps: steps:
- task: KubernetesManifest@0 - task: KubernetesManifest@0
displayName: Deploy to Kubernetes cluster displayName: Deploy to Kubernetes cluster
inputs: inputs:
action: deploy action: deploy
namespace: default
manifests: | manifests: |
$(Pipeline.Workspace)/manifests/deployment.eventhub.httpapi.host.yml $(Pipeline.Workspace)/manifests/deployment.eventhub.httpapi.host.yml
$(Pipeline.Workspace)/manifests/service.eventhub.httpapi.host.yml $(Pipeline.Workspace)/manifests/service.eventhub.httpapi.host.yml

Loading…
Cancel
Save