From b30b224aed835b42e6027fd058f1cb0db800c7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:48:35 +0300 Subject: [PATCH] Add displaynames and fix migrator delete job --- etc/azure/deploy-to-k8s.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 3a5f114..058cba4 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -5,23 +5,38 @@ pool: steps: - task: PowerShell@2 + displayName: Build docker images inputs: filePath: 'etc/k8s/scripts/build-images.ps1' arguments: '-version $(Build.BuildId)' - task: Docker@2 + displayName: Login to ACR inputs: containerRegistry: 'volocr' command: 'login' - task: PowerShell@2 + displayName: Push images to ACR inputs: filePath: 'etc/azure/scripts/push-images.ps1' arguments: '-version $(Build.BuildId)' -- task: CmdLine@2 + +- task: Kubernetes@1 + displayName: Delete migrator job 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 + displayName: Helm deploy inputs: connectionType: 'Azure Resource Manager' azureSubscription: 'volosoft(fe02ef9f-9e1c-4e40-b924-505981688dd8)'