WebDAV

The example Yaml configurations in this file are using the legacy 0.8 syntax. If you are using Drone 1.0 or Drone Cloud please ensure you use the appropriate 1.0 syntax. Learn more here.

The WebDAV plugin will allow pushing build artifacts to any WebDAV server, including Nextcloud or ownCloud.

An example configuration would be as follows:

pipeline:
  upload_debug:
    image: vividboarder/drone-webdav
    file: com.vividboarder.otbeta/build/outputs/apk/com.vividboarder.otbeta-debug.apk
    destination: https://my.nextcloud.com/remote.php/dav/files/vividboarder/Android/Apks/
    username: myusername
    password: mypassword

You probably don’t want to check your credentials into your repo, so you may use secrets for this:

pipeline:
  upload_debug:
    image: vividboarder/drone-webdav
    file: com.vividboarder.otbeta/build/outputs/apk/com.vividboarder.otbeta-debug.apk
    destination: https://my.nextcloud.com/remote.php/dav/files/vividboarder/Android/Apks/
-   username: myusername
-   password: mypassword
+   secrets: [webdav_username, webdav_password]

Secret Reference

webdav_username, username
webdav server username
webdav_password, password
webdav server password

Parameter Reference

file
location of the file to upload
destination
directory to copy the file to