Skip to content

Drone plugin for uploading files using WebDAV. Based on mella.

Notifications You must be signed in to change notification settings

Toroid-io/drone-mella

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

drone-mella

drone-mella is a drone plugin for uploading files to a OwnCloud. It is based on mella.

Options

  • server: Server URL
  • remote_folder: Folder in server where to store the file
  • files: Array of files to be compressed.
  • tgz_name: Suffix for the compressed file.
  • parentdir: true|false. True if the directory structure should be conserved when compressing. Defaults to true.
  • sha1sum: true|false. True if a hash file should be created alongside the compressed file. Defaults to true
  • mella_username, mella_password: Credentials for server. You are advised to use environment variables OWNCLOUD_USERNAME and OWNCLOUD_PASSWORD in order to hide your credentials.

Example configuration

pipeline:
  previousaction:
    [...]

  deploy:
    image: toroid/drone-mella
    server: https://my.server.com
    remote_folder: "CREATE/THIS/BEFORE"
    tgz_name: latest
    files:
      - localFolder/*
    parentdir: false

Notes

drone-mella will put files in a .tgz file named after the repository: repoName_COMMIT-SHA.tgz with COMMIT-SHA being the last 7 characters. If a tag hook is detected, drone will set DRONE_TAG and the file will be named: repoName_TAG.tgz. If tgz_name is detected, the file will be named: repoName_${tgzname}.tgz.

Then this compressed file will be uploaded to server/remote_folder, provided the credentials are correct and that the remote folder already exists

Contributing

Don't hesitate to submit issues or pull requests.

License

Copyright (c)2018 by Andrés Manelli

This script comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See CC BY-NC-SA 4.0 for details. https://creativecommons.org/licenses/by-nc-sa/4.0/

mella is made available under the CC BY-NC-SA 4.0 license. Copyright (c) by Florian Beer

About

Drone plugin for uploading files using WebDAV. Based on mella.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published