|
|
@ -5,23 +5,38 @@ pool: |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- task: PowerShell@2 |
|
|
- task: PowerShell@2 |
|
|
|
|
|
displayName: Build docker images |
|
|
inputs: |
|
|
inputs: |
|
|
filePath: 'etc/k8s/scripts/build-images.ps1' |
|
|
filePath: 'etc/k8s/scripts/build-images.ps1' |
|
|
arguments: '-version $(Build.BuildId)' |
|
|
arguments: '-version $(Build.BuildId)' |
|
|
|
|
|
|
|
|
- task: Docker@2 |
|
|
- task: Docker@2 |
|
|
|
|
|
displayName: Login to ACR |
|
|
inputs: |
|
|
inputs: |
|
|
containerRegistry: 'volocr' |
|
|
containerRegistry: 'volocr' |
|
|
command: 'login' |
|
|
command: 'login' |
|
|
|
|
|
|
|
|
- task: PowerShell@2 |
|
|
- task: PowerShell@2 |
|
|
|
|
|
displayName: Push images to ACR |
|
|
inputs: |
|
|
inputs: |
|
|
filePath: 'etc/azure/scripts/push-images.ps1' |
|
|
filePath: 'etc/azure/scripts/push-images.ps1' |
|
|
arguments: '-version $(Build.BuildId)' |
|
|
arguments: '-version $(Build.BuildId)' |
|
|
- task: CmdLine@2 |
|
|
|
|
|
|
|
|
- task: Kubernetes@1 |
|
|
|
|
|
displayName: Delete migrator job |
|
|
inputs: |
|
|
inputs: |
|
|
script: 'kubectl delete job eh-az-dbmigrator --namespace eventhub' |
|
|
connectionType: 'Azure Resource Manager' |
|
|
|
|
|
azureSubscriptionEndpoint: 'volosoft (fe02ef9f-9e1c-4e40-b924-505981688dd8)' |
|
|
|
|
|
azureResourceGroup: 'volo' |
|
|
|
|
|
kubernetesCluster: 'volo' |
|
|
|
|
|
namespace: 'eventhub' |
|
|
|
|
|
command: 'delete' |
|
|
|
|
|
arguments: 'job eh-az-dbmigrator' |
|
|
|
|
|
secretType: 'dockerRegistry' |
|
|
|
|
|
containerRegistryType: 'Azure Container Registry' |
|
|
|
|
|
|
|
|
- task: HelmDeploy@0 |
|
|
- task: HelmDeploy@0 |
|
|
|
|
|
displayName: Helm deploy |
|
|
inputs: |
|
|
inputs: |
|
|
connectionType: 'Azure Resource Manager' |
|
|
connectionType: 'Azure Resource Manager' |
|
|
azureSubscription: 'volosoft(fe02ef9f-9e1c-4e40-b924-505981688dd8)' |
|
|
azureSubscription: 'volosoft(fe02ef9f-9e1c-4e40-b924-505981688dd8)' |
|
|
|