A Drone plugin to push files to webdav
Go to file
Ian 8a22e80d99
Defaults to WEBDAV_* for username and password if not provided (#1)
2018-04-12 10:49:56 -07:00
.dockerignore Defaults to WEBDAV_* for username and password if not provided (#1) 2018-04-12 10:49:56 -07:00
Dockerfile Defaults to WEBDAV_* for username and password if not provided (#1) 2018-04-12 10:49:56 -07:00
Readme.md Add readme 2018-04-11 17:26:31 -07:00
push.sh Defaults to WEBDAV_* for username and password if not provided (#1) 2018-04-12 10:49:56 -07:00

Readme.md

drone-webdav

A WebDAV plugin for the drone.io project

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/
    user: 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/
    secrets:
      - source: WEBDAV_USER
        target: PLUGIN_USERNAME
      - source: WEBDAV_PASSWORD
        target: PLUGIN_PASSWORD