ci: use rsync plugin
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
LordMZTE 2023-08-04 10:18:48 +02:00
parent 1224960ba9
commit 0f1a547441
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -6,13 +6,15 @@ pipeline:
- zola build
upload:
image: alpine
secrets: [ ssh_key ]
when:
branch: master
commands:
- apk add openssh rsync
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- rsync -e 'ssh -p 22004 -o StrictHostKeychecking=no' -va --delete ./public/ www-ci@mzte.de:/var/www/html
image: drillster/drone-rsync
settings:
hosts: ["mzte.de"]
port: 22004
user: www-ci
key:
from_secret: ssh_key
source: ./public/
target: /var/www/html
delete: true
args: "-v"