fix: ensure sshpass is installed only if not present before deployment
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -63,7 +63,7 @@ jobs:
|
||||
|
||||
- name: Deploy to Kubernetes
|
||||
run: |
|
||||
apk add --no-cache openssh-client sshpass
|
||||
which sshpass || apk add --no-cache openssh-client sshpass
|
||||
export SSHPASS="${{ secrets.SERVER_PASSWORD }}"
|
||||
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} "
|
||||
kubectl rollout restart deployment/cms
|
||||
|
||||
Reference in New Issue
Block a user