From 4ab7e055c51faed286393e044ab324263483bc95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 16 Aug 2021 16:07:44 +0300 Subject: [PATCH] Update deploy-to-k8s.yml for Azure Pipelines --- etc/azure/deploy-to-k8s.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/azure/deploy-to-k8s.yml b/etc/azure/deploy-to-k8s.yml index a625c1b..23b8290 100644 --- a/etc/azure/deploy-to-k8s.yml +++ b/etc/azure/deploy-to-k8s.yml @@ -7,13 +7,18 @@ steps: - task: PowerShell@2 inputs: filePath: 'etc/k8s/scripts/build-images.ps1' + arguments: '-version $(Build.BuildId)' + - task: Docker@2 inputs: containerRegistry: 'volocr' command: 'login' + - task: PowerShell@2 inputs: filePath: 'etc/azure/scripts/push-images.ps1' + arguments: '-version $(Build.BuildId)' + - task: HelmDeploy@0 inputs: connectionType: 'Azure Resource Manager' @@ -27,4 +32,4 @@ steps: chartName: 'etc/k8s/helm-chart/eventhub' releaseName: 'eh-az' valueFile: 'etc/k8s/helm-chart/eventhub/values.azure.yaml' - arguments: '--namespace eventhub --create-namespace' \ No newline at end of file + arguments: '--namespace eventhub --create-namespace --set global.eventHubImageVersion=$(Build.BuildId)' \ No newline at end of file