Skip to content

Commit 2fa9575

Browse files
committed
build: update deploment in CI
1 parent 2d3aa5e commit 2fa9575

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

azure-pipelines.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)