Brutal way to SSH from CI to destination service and perform redeploy.
Set SSHSERVER, SSHUSER and SSHPASS environment variables in Gitlab.
deploy:
image: ringcentral/sshpass:latest
script:
- sshpass -e ssh -oStrictHostKeyChecking=no "${SSHUSER}@${SSHSERVER}" "cd /opt/xxx && make redeploy && exit"
Content type
Image
Digest
Size
4.9 MB
Last updated
over 6 years ago
docker pull ringcentral/sshpass