Files
willfullyobtuse.com/ci-deploy
James Brechtel 0fd38506bb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Testing CI
2022-11-10 08:21:50 -05:00

12 lines
257 B
Bash
Executable File

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