File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,19 +53,13 @@ steps:
5353 docker push $(latestImageName)
5454 displayName : ' Push docker image'
5555
56- # - task: Kubernetes@1
57- # displayName: 'kubectl update deployment'
58- # inputs:
59- # kubernetesServiceEndpoint: 'aks-hk-01'
60- # command: 'apply'
61- # arguments: '-f https://raw.githubusercontent.com/OpenReservation/OpenReservation.Notification/main/k8s/manifests/deployment.yaml'
62-
63- # - task: Kubernetes@1
64- # displayName: 'kubectl set image'
65- # inputs:
66- # kubernetesServiceEndpoint: 'aks-hk-01'
67- # command: 'set'
68- # arguments: 'image deployment/$(serviceName) $(serviceName)=$(imageName)'
56+ - task : SSH@0
57+ displayName : ' Run shell inline on remote machine'
58+ inputs :
59+ sshEndpoint : ' weihanli-vm'
60+ runOptions : inline
61+ inline : |
62+ kubectl set image deployment/notification-service notification-service=$(imageName)
6963
7064 - script : |
7165 dotnet-exec "https://github.com/OpenReservation/scripts/blob/main/deploy/azure-pipelines-notification.cs" < /dev/null
You can’t perform that action at this time.
0 commit comments