Skip to content

Commit

Permalink
Merge pull request #247 from abpframework/skoc/azure-pipeline
Browse files Browse the repository at this point in the history
Update azure pipeline for deployment with helm
  • Loading branch information
enisn authored May 21, 2024
2 parents 5c42f0d + 3e6038c commit ccb8777
Showing 1 changed file with 155 additions and 155 deletions.
310 changes: 155 additions & 155 deletions etc/k8s/azure/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trigger:
branches:
include:
- skoc/azure-pipeline
- main
paths:
include:
- apps/angular/src/**
Expand Down Expand Up @@ -87,20 +87,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedAngular'], 'true'))
# displayName: 'Deploy Angular App'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web'
# releaseName: 'administration'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedAngular'], 'true'))
displayName: 'Deploy Angular App'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web'
releaseName: 'web'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/web/values.yaml'
waitForExecution: false

# Public Web
- task: Docker@2
Expand All @@ -123,20 +123,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedPublicWeb'], 'true'))
# displayName: 'Deploy Public Web'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web'
# releaseName: 'public-web'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedPublicWeb'], 'true'))
displayName: 'Deploy Public Web'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web'
releaseName: 'public-web'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/public-web/values.yaml'
waitForExecution: false

# Web Gateway
- task: Docker@2
Expand All @@ -159,20 +159,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedWebGateway'], 'true'))
# displayName: 'Deploy Web Gateway'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web'
# releaseName: 'web-gateway'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedWebGateway'], 'true'))
displayName: 'Deploy Web Gateway'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web'
releaseName: 'web-gateway'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web/values.yaml'
waitForExecution: false

# Web Public Gateway
- task: Docker@2
Expand All @@ -195,20 +195,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedWebPublicGateway'], 'true'))
# displayName: 'Deploy Web Public Gateway'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public'
# releaseName: 'web-public-gateway'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedWebPublicGateway'], 'true'))
displayName: 'Deploy Web Public Gateway'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public'
releaseName: 'web-public-gateway'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/gateway-web-public/values.yaml'
waitForExecution: false

# Administration
- task: Docker@2
Expand All @@ -231,20 +231,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedAdministration'], 'true'))
# displayName: 'Deploy Administration'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration'
# releaseName: 'administration'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedAdministration'], 'true'))
displayName: 'Deploy Administration'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration'
releaseName: 'administration'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/administration/values.yaml'
waitForExecution: false

# Basket
- task: Docker@2
Expand All @@ -267,20 +267,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedBasket'], 'true'))
# displayName: 'Deploy Basket'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket'
# releaseName: 'basket'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedBasket'], 'true'))
displayName: 'Deploy Basket'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket'
releaseName: 'basket'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/basket/values.yaml'
waitForExecution: false

# Catalog
- task: Docker@2
Expand All @@ -303,20 +303,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedCatalog'], 'true'))
# displayName: 'Deploy Catalog'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog'
# releaseName: 'catalog'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedCatalog'], 'true'))
displayName: 'Deploy Catalog'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog'
releaseName: 'catalog'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/catalog/values.yaml'
waitForExecution: false

# cmskit
- task: Docker@2
Expand All @@ -339,20 +339,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedCmsKit'], 'true'))
# displayName: 'Deploy CmsKit'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit'
# releaseName: 'cmskit'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedCmsKit'], 'true'))
displayName: 'Deploy CmsKit'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit'
releaseName: 'cmskit'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/cmskit/values.yaml'
waitForExecution: false

# Identity
- task: Docker@2
Expand All @@ -375,20 +375,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedIdentity'], 'true'))
# displayName: 'Deploy Identity'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity'
# releaseName: 'identity'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedIdentity'], 'true'))
displayName: 'Deploy Identity'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity'
releaseName: 'identity'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/identity/values.yaml'
waitForExecution: false

# Ordering
- task: Docker@2
Expand All @@ -411,20 +411,20 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedOrdering'], 'true'))
# displayName: 'Deploy Ordering'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering'
# releaseName: 'ordering'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedOrdering'], 'true'))
displayName: 'Deploy Ordering'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering'
releaseName: 'ordering'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/ordering/values.yaml'
waitForExecution: false

# Payment
- task: Docker@2
Expand All @@ -447,17 +447,17 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
# - task: HelmDeploy@0
# #condition: and(succeeded(), eq(variables['hasChangedPayment'], 'true'))
# displayName: 'Deploy Payment'
# inputs:
# connectionType: Kubernetes Service Connection
# kubernetesServiceConnection: 'aks-demoms'
# namespace: 'eshop'
# command: 'upgrade'
# hartType: 'FilePath'
# chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment'
# releaseName: 'payment'
# overrideValues: 'image.tag=$(tag)'
# valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment/values.yaml'
# waitForExecution: false
- task: HelmDeploy@0
#condition: and(succeeded(), eq(variables['hasChangedPayment'], 'true'))
displayName: 'Deploy Payment'
inputs:
connectionType: Kubernetes Service Connection
kubernetesServiceConnection: 'aks-demoms'
namespace: 'eshop'
command: 'upgrade'
chartType: 'FilePath'
chartPath: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment'
releaseName: 'payment'
overrideValues: 'image.tag=$(tag)'
valueFile: 'devops/eshoponabp/k8s/eshoponabp-istio/charts/payment/values.yaml'
waitForExecution: false

0 comments on commit ccb8777

Please sign in to comment.