Browse Source

update for eventhub web

staging
yusuf karatoprak 5 years ago
parent
commit
6a0eee5ee9
  1. 18
      azure-pipelines.eventhub.web.yml

18
azure-pipelines.eventhub.web.yml

@ -1,7 +1,3 @@
# 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
@ -9,12 +5,13 @@ trigger:
variables:
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: '1ae4ab3c-b39a-4860-b6dc-683cc524d1e4'
dockerRegistryServiceConnection: '855289e7-1034-4e42-90b4-38c072ecefcb'
imageRepository: 'voloeventhub'
containerRegistry: 'voloeventhub.azurecr.io'
dockerfilePath: '**/Dockerfile.EventHub.Web'
tag: '$(Build.BuildNumber)'
# Agent VM image name
vmImageName: 'ubuntu-latest'
@ -38,7 +35,7 @@ stages:
tags: |
$(tag)
- publish: manifests
- upload: manifests
artifact: manifests
- stage: Deploy
@ -47,17 +44,15 @@ stages:
jobs:
- deployment: Deploy
displayName: Deploy-EventHub.Web
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-EventHub-Web
pool:
vmImage: $(vmImageName)
environment: 'voloeventhub.default'
environment: 'volosofteventhub-3839.default'
strategy:
runOnce:
deploy:
steps:
- task: KubernetesManifest@0
displayName: Deploy to Kubernetes cluster
@ -66,6 +61,7 @@ stages:
manifests: |
$(Pipeline.Workspace)/manifests/deployment.eventhub.web.yml
$(Pipeline.Workspace)/manifests/service.eventhub.web.yml
containers: |
$(containerRegistry)/$(imageRepository):$(tag)

Loading…
Cancel
Save