Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Latest commit

 

History

History
14 lines (10 loc) · 374 Bytes

File metadata and controls

14 lines (10 loc) · 374 Bytes

Alpine Linux with sshpass

Brutal way to SSH from CI to destination service and perform redeploy.

Use with Gitlab

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"