From e699dfe88c55c3c8d807827e5b6ede7f9ba080bd Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 30 Sep 2020 15:41:04 +0200 Subject: [PATCH] ci: fix CD not working correctly --- azure-pipelines.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fe029a3e17..a693fc5169 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -337,14 +337,15 @@ stages: - job: deploy_dev pool: vmImage: 'ubuntu-latest' - steps: - - task: HelmDeploy@0 - inputs: - connectionType: 'Kubernetes Service Connection' - kubernetesServiceConnection: 'k8s-beryjuorg-prd' - namespace: 'passbook-dev' - command: 'upgrade' - chartType: 'FilePath' - chartPath: 'helm/' - releaseName: 'passbook-dev' - recreate: true + steps: + - task: HelmDeploy@0 + condition: eq(variables['Build.SourceBranch'], 'refs/heads/master') + inputs: + connectionType: 'Kubernetes Service Connection' + kubernetesServiceConnection: 'k8s-beryjuorg-prd' + namespace: 'passbook-dev' + command: 'upgrade' + chartType: 'FilePath' + chartPath: 'helm/' + releaseName: 'passbook-dev' + recreate: true