WoodpeckerPlugins/nextcloud-upload
2023-11-22 22:33:38 +01:00
..
.dockerignore first iteration 2023-07-02 16:53:53 +02:00
Dockerfile fixed nextcloud-upload entrypoint 2023-07-17 22:30:19 +02:00
package-lock.json update dependencies 2023-11-22 14:56:56 +01:00
package.json update dependencies 2023-11-22 14:56:56 +01:00
README.md allow skipping trash for retention 2023-07-16 22:47:57 +02:00
run.js actually fixed it this time 2023-11-22 22:33:38 +01:00
test.sh allow skipping trash for retention 2023-07-16 22:47:57 +02:00

name authors description tags containerImage containerImageUrl url
Nextcloud Upload Ellpeck Upload files to Nextcloud using chunking and optionally add tags to files
deploy
publish
ellpeck/woodpecker-nextcloud-upload https://hub.docker.com/r/ellpeck/woodpecker-nextcloud-upload https://github.com/Ellpeck/WoodpeckerPlugins/tree/main/nextcloud-upload

Nextcloud Upload

Simple plugin to upload files to Nextcloud using chunking, based on a glob pattern and a destination location. Note that, since this uses Nextcloud's built-in chunking system, it likely doesn't work for other WebDAV applications.

Here's an example of how to use it:

steps:
  upload:
    image: ellpeck/woodpecker-nextcloud-upload
    settings:
      # required settings
      server: https://cloud.ellpeck.de # the server to use
      user: EllBot # the user
      token: access-token # the access token, or password if 2FA is disabled
      files: # the file(s), uses glob patterns
        - "**/*.md"
      dest: Uploads/CoolMarkdownFiles # the destination directory

      # optional retention settings, useful if old builds should be deleted automatically
      retentionamount: 7 # amount of children that retentionbase is allowed to have before oldest ones are deleted on upload
      retentionbase: Uploads # directory that the retentionamount applies to
      retentionskiptrash: false # whether retention-based deletion should skip the Nextcloud trash, defaults to false

      # misc optional settings
      basedir: "." # local base directory for files, defaults to .
      chunksize: # chunk size in bytes, defaults to 10485760, or 10 MiB
      quiet: false # whether to reduce output, defaults to false
      tags: # a set of tags to apply to uploaded files, tag is expected to already exist
        - mytag
      flatten: false # whether to flatten directories, causing all files to be placed directly in dest, defaults to false