The following gitea pipeline fails to deploy for me:
pipeline: build: image: cbrgm/drone-hugo:latest validate: true output: /public/ url: https://<host> deploy: image: drillster/drone-rsync:latest hosts: [ "<host>" ] port: 999 user: khorne secrets: [ rsync_key ] target: /var/www/<host>/public/ source: /public notify: image: drillster/drone-email:latest host: <host> username: khorne secrets: [ email_password ] from: drone@<host> recipients: [ khorne@<host> ] when: status: [ changed, failure ]
with the following message:
$ rsync -az -e 'ssh -p 999 -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' /public khorne@<host>:/var/www/<host>/public/ ... rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
Not really sure where to proceed from here.
drone exec /path/to/.drone.yaml claims no private key but that is added to secrets with drone secrets add --repository --name rsync_key --value @/home/khorne/.ssh/id_rsa …
Manually running that command outside at least the drone environment succeeds with the same key.
I have no idea whats going wrong where and I’d appreciate any help.
Thanks in advance