Browse Source

Merge pull request #247 from abpframework/skoc/azure-pipeline

Update azure pipeline for deployment with helm
rel-2.1
Enis Necipoglu 2 years ago
committed by GitHub
parent
commit
ccb87771fc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 310
      etc/k8s/azure/azure-pipelines.yml

310
etc/k8s/azure/azure-pipelines.yml

@ -1,7 +1,7 @@
trigger: trigger:
branches: branches:
include: include:
- skoc/azure-pipeline - main
paths: paths:
include: include:
- apps/angular/src/** - apps/angular/src/**
@ -87,20 +87,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedAngular'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedAngular'], 'true'))
# displayName: 'Deploy Angular App' displayName: 'Deploy Angular App'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web'
# releaseName: 'administration' releaseName: 'web'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web/values.yaml'
# waitForExecution: false waitForExecution: false
# Public Web # Public Web
- task: Docker@2 - task: Docker@2
@ -123,20 +123,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedPublicWeb'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedPublicWeb'], 'true'))
# displayName: 'Deploy Public Web' displayName: 'Deploy Public Web'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web'
# releaseName: 'public-web' releaseName: 'public-web'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web/values.yaml'
# waitForExecution: false waitForExecution: false
# Web Gateway # Web Gateway
- task: Docker@2 - task: Docker@2
@ -159,20 +159,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedWebGateway'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedWebGateway'], 'true'))
# displayName: 'Deploy Web Gateway' displayName: 'Deploy Web Gateway'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web'
# releaseName: 'web-gateway' releaseName: 'web-gateway'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web/values.yaml'
# waitForExecution: false waitForExecution: false
# Web Public Gateway # Web Public Gateway
- task: Docker@2 - task: Docker@2
@ -195,20 +195,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedWebPublicGateway'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedWebPublicGateway'], 'true'))
# displayName: 'Deploy Web Public Gateway' displayName: 'Deploy Web Public Gateway'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public'
# releaseName: 'web-public-gateway' releaseName: 'web-public-gateway'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public/values.yaml'
# waitForExecution: false waitForExecution: false
# Administration # Administration
- task: Docker@2 - task: Docker@2
@ -231,20 +231,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedAdministration'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedAdministration'], 'true'))
# displayName: 'Deploy Administration' displayName: 'Deploy Administration'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration'
# releaseName: 'administration' releaseName: 'administration'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration/values.yaml'
# waitForExecution: false waitForExecution: false
# Basket # Basket
- task: Docker@2 - task: Docker@2
@ -267,20 +267,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedBasket'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedBasket'], 'true'))
# displayName: 'Deploy Basket' displayName: 'Deploy Basket'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket'
# releaseName: 'basket' releaseName: 'basket'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket/values.yaml'
# waitForExecution: false waitForExecution: false
# Catalog # Catalog
- task: Docker@2 - task: Docker@2
@ -303,20 +303,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedCatalog'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedCatalog'], 'true'))
# displayName: 'Deploy Catalog' displayName: 'Deploy Catalog'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog'
# releaseName: 'catalog' releaseName: 'catalog'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog/values.yaml'
# waitForExecution: false waitForExecution: false
# cmskit # cmskit
- task: Docker@2 - task: Docker@2
@ -339,20 +339,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedCmsKit'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedCmsKit'], 'true'))
# displayName: 'Deploy CmsKit' displayName: 'Deploy CmsKit'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit'
# releaseName: 'cmskit' releaseName: 'cmskit'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit/values.yaml'
# waitForExecution: false waitForExecution: false
# Identity # Identity
- task: Docker@2 - task: Docker@2
@ -375,20 +375,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedIdentity'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedIdentity'], 'true'))
# displayName: 'Deploy Identity' displayName: 'Deploy Identity'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity'
# releaseName: 'identity' releaseName: 'identity'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity/values.yaml'
# waitForExecution: false waitForExecution: false
# Ordering # Ordering
- task: Docker@2 - task: Docker@2
@ -411,20 +411,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedOrdering'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedOrdering'], 'true'))
# displayName: 'Deploy Ordering' displayName: 'Deploy Ordering'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering'
# releaseName: 'ordering' releaseName: 'ordering'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering/values.yaml'
# waitForExecution: false waitForExecution: false
# Payment # Payment
- task: Docker@2 - task: Docker@2
@ -447,17 +447,17 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection) containerRegistry: $(dockerRegistryServiceConnection)
tags: | tags: |
$(tag) $(tag)
# - task: HelmDeploy@0 - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedPayment'], 'true')) #condition: and(succeeded(), eq(variables['hasChangedPayment'], 'true'))
# displayName: 'Deploy Payment' displayName: 'Deploy Payment'
# inputs: inputs:
# connectionType: Kubernetes Service Connection connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms' kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop' namespace: 'eshop'
# command: 'upgrade' command: 'upgrade'
# hartType: 'FilePath' chartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment' chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment'
# releaseName: 'payment' releaseName: 'payment'
# overrideValues: 'image.tag=$(tag)' overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment/values.yaml' valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment/values.yaml'
# waitForExecution: false waitForExecution: false
Loading…
Cancel
Save