Skip to content

Commit

Permalink
Merge pull request #46 from Scille/deploy-improve-sshpass
Browse files Browse the repository at this point in the history
Improve use of sshpass in deploy script
  • Loading branch information
touilleMan authored Sep 24, 2024
2 parents 4d45892 + 79b7303 commit cf2700a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ jobs:
git rev-parse HEAD > COMMIT
# Yeah, in2p3 doesn't support .ssh/authorized_keys, so we have to hack with sshpass...
rsync --rsh="/usr/bin/sshpass -p $IN2P3_SSH_PASSWORD -- \
# (`sshpass -e` means the password will loacated in the `SSHPASS` env var)
rsync --rsh="/usr/bin/sshpass -e -- \
ssh -v -o StrictHostKeyChecking=no -l ${{ vars.IN2P3_SSH_LOGIN }}" \
--verbose --archive --compress --delete --delete-after \
--exclude="__pycache__" --exclude=".git" \
. \
${{ vars.IN2P3_SSH_LOGIN }}@cca9.in2p3.fr:'$HOME/${{ vars.DEPLOY_DIR }}/vigiechiro-api'
env:
IN2P3_SSH_PASSWORD: ${{ secrets.IN2P3_SSH_PASSWORD }}
SSHPASS: ${{ secrets.IN2P3_SSH_PASSWORD }}

0 comments on commit cf2700a

Please sign in to comment.