Skip to content

Commit

Permalink
Add copy values
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatson484 committed Oct 30, 2022
1 parent 71dc226 commit 87ccf2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.4
1.1.5
14 changes: 11 additions & 3 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,26 @@ 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:
sshEndpoint: 'Kubernetes Master'
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
Expand Down

0 comments on commit 87ccf2d

Please sign in to comment.