From 87ccf2dcf75a65b271d0cee0e7a271e1abd9144f Mon Sep 17 00:00:00 2001 From: John Watson Date: Sun, 30 Oct 2022 20:36:38 +0000 Subject: [PATCH] Add copy values --- VERSION | 2 +- build.yaml | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 65087b4..e25d8d9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.4 +1.1.5 diff --git a/build.yaml b/build.yaml index 0e507aa..e5df36c 100644 --- a/build.yaml +++ b/build.yaml @@ -280,9 +280,18 @@ jobs: displayName: Download Helm values file name: helmValuesFile inputs: - secureFile: '${{ parameters.repo }}-values.yaml' + secureFile: ${{ parameters.repo }}-values.yaml condition: and(succeeded(), eq(${{ parameters.hasSecureHelmValuesFile }}, true)) + - task: CopyFilesOverSSH@0 + displayName: Copy values file + inputs: + sshEndpoint: 'Kubernetes Master' + sourceFolder: $(Agent.TempDirectory) + contents: ${{ parameters.repo }}-values.yaml + targetFolder: /tmp + condition: and(succeeded(), eq(${{ parameters.hasSecureHelmValuesFile }}, true), eq(${{ parameters.deploy }}, true)) + - task: SSH@0 displayName: 'Deploy to Kubernetes' inputs: @@ -290,8 +299,7 @@ jobs: runOptions: inline inline: | helm repo update - echo "helm upgrade --install --namespace ${{ parameters.namespace }} -f $(helmValuesFile.secureFilePath) ${{ parameters.repo }} --atomic lynxmagnus/${{ parameters.repo }} --version $(version) --create-namespace" - helm upgrade --install --namespace ${{ parameters.namespace }} -f $(helmValuesFile.secureFilePath) ${{ parameters.repo }} --atomic lynxmagnus/${{ parameters.repo }} --version $(version) --create-namespace + helm upgrade --install --namespace ${{ parameters.namespace }} -f /tmp/${{ parameters.repo }}-values.yaml ${{ parameters.repo }} --atomic lynxmagnus/${{ parameters.repo }} --version $(version) --create-namespace condition: and(succeeded(), eq(${{ parameters.hasSecureHelmValuesFile }}, true), eq(${{ parameters.deploy }}, true)) - task: PublishBuildArtifacts@1