fix: ensure sshpass is installed only if not present before deployment
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled

This commit is contained in:
masoodafar-web
2026-01-29 06:05:46 +03:30
parent 45c01fc157
commit 0c95b03f0b
+1 -1
View File
@@ -63,7 +63,7 @@ jobs:
- name: Deploy to Kubernetes - name: Deploy to Kubernetes
run: | run: |
apk add --no-cache openssh-client sshpass which sshpass || apk add --no-cache openssh-client sshpass
export SSHPASS="${{ secrets.SERVER_PASSWORD }}" export SSHPASS="${{ secrets.SERVER_PASSWORD }}"
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} " sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} "
kubectl rollout restart deployment/cms kubectl rollout restart deployment/cms