From f13a6252a9f0e0e8d01615625e9c75808889c95e Mon Sep 17 00:00:00 2001 From: VladVascan <50298389+VladVascan@users.noreply.github.com> Date: Thu, 30 May 2019 15:07:33 +0100 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f80ddebf7..fef42f08c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,7 +18,7 @@ variables: tag: '$(Build.BuildId)' # Kubernetes Namespace - k8sNamespace: '{{ k8sResource.Namespace }}' + mbankpoc: '{{ mbankpoc.Namespace }}' imagePullSecret: '{{#toAlphaNumericString containerRegistryConnection.Name 50}}{{/toAlphaNumericString}}{{#shortGuid}}{{/shortGuid}}-auth' # Agent VM image name @@ -56,7 +56,7 @@ stages: displayName: Deploy pool: vmImage: $(vmImageName) - environment: '{{ k8sResource.EnvironmentReference.Name }}.{{ k8sResource.Name }}' + environment: '{{ mbankpoc.EnvironmentReference.Name }}.{{ mbankpoc.Name }}' strategy: runOnce: deploy: @@ -66,14 +66,14 @@ stages: inputs: action: createSecret secretName: $(imagePullSecret) - namespace: $(k8sNamespace) + namespace: $(mbankpoc) dockerRegistryEndpoint: $(dockerRegistryServiceConnection) - task: KubernetesManifest@0 displayName: Deploy to Kubernetes cluster inputs: action: deploy - namespace: $(k8sNamespace) + namespace: $(mbankpoc) manifests: | $(System.ArtifactsDirectory)/manifests/deployment.yml $(System.ArtifactsDirectory)/manifests/service.yml