ci: use rsync plugin
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
1224960ba9
commit
0f1a547441
1 changed files with 12 additions and 10 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue