Skip to content

Commit

Permalink
Replace SSH deploy with service connection
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatson484 committed Sep 7, 2024
1 parent 8f27cef commit 1aaabdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.1
1.10.0
17 changes: 10 additions & 7 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,15 @@ jobs:
continueOnError: true
condition: and(succeeded(), eq(variables.releaseExists, false))

- task: SSH@0
displayName: 'Deploy to Kubernetes'
- task: HelmDeploy@1
inputs:
sshEndpoint: 'Kubernetes Master'
runOptions: inline
inline: |
helm repo update
helm upgrade --install --namespace ${{ parameters.namespace }} $(repo) --atomic lynxmagnus/$(repo) --version $(version) --create-namespace
connectionType: 'Kubernetes Service Connection'
kubernetesServiceConnection: 'Contabo'
namespace: '${{ parameters.namespace }}'
command: 'upgrade'
chartType: 'Name'
chartName: 'lynxmagnus/$(repo)'
chartVersion: '$(version)'
releaseName: '$(repo)'
arguments: '--create-namespace --atomic'
condition: and(succeeded(), eq(${{ parameters.deploy }}, true))

0 comments on commit 1aaabdd

Please sign in to comment.