From fab1b73d04863a1fac50481bf9ab6ba56dc9ccd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:36:54 +0300 Subject: [PATCH] Delete migrator job before helm deployment --- etc/azure/deploy-to-k8s.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index 23b8290..3a5f114 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -18,7 +18,9 @@ steps: inputs: filePath: 'etc/azure/scripts/push-images.ps1' arguments: '-version $(Build.BuildId)' - +- task: CmdLine@2 + inputs: + script: 'kubectl delete job eh-az-dbmigrator --namespace eventhub' - task: HelmDeploy@0 inputs: connectionType: 'Azure Resource Manager'