Files
willfullyobtuse.com/ci-deploy
James Brechtel cf5cf2bb30
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Testing CI
2022-11-10 08:19:25 -05:00

12 lines
252 B
Bash
Executable File

#!/bin/sh
mkdir -p $HOME/.ssh
ssh-keyscan -t rsa $DEPLOY_HOST >> $HOME/.ssh/known_hosts
chown -R $USER .
sshpass -p "$DEPLOY_PASSWORD" \
rsync -avzr \
-e 'ssh -o "StrictHostKeyChecking no"' \
./public/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH