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

Loading…
Cancel
Save