You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Drew Short 577c3b4b8c Setup to use the loaded config file 4 years ago
assets Setup to use the loaded config file 4 years ago
.dockerignore Initial commit 4 years ago
.gitignore Setup to use the loaded config file 4 years ago
Dockerfile Initial commit 4 years ago
LICENSE Initial commit 4 years ago
README.md Initial commit 4 years ago
pipeline.yml Pointed pipeline to public resource 4 years ago
tag Initial commit 4 years ago
upload_pipeline.sh Initial commit 4 years ago

README.md

concourse-rclone-compose-resource

A Concourse CI resource that executes rclone against a remote host.

See Docker Hub for tagged image versions available.

Resource Type Configuration

resource_types:
- name: rclone
  type: docker-image
  source:
    repository: warricksothr/concourse-rclone-resource
    tag: latest

Source Configuration

  • config: Required. The rclone config file contents to use.
  • files: Optional. Additional files to write to the /tmp directory. This is a map of key/value pairs for the filename and contents of that file

Example

resources:
- name: docker-compose
  type: docker-compose
  source:
    config: |
      [remote]
        client_id = <Your ID>
        client_secret = <Your Secret>
        scope = drive
        root_folder_id = <Your root folder id>
        service_account_file = /tmp/serviceAccountFile
        token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014-03-16T13:57:58.955387075Z"}
    files:
      serviceAccountFile: |
        ...contents...

Note

It's highly recommended to use secrets mangement to avoid storing sensitive credentials in the pipeline

Behaviour

check: No-Op

in: No-Op

out: Execute rclone

Parameters

  • source: Required. The path to the source files.
  • destination: Required. The rclone destination for the files. ex. remote:some/location
  • subdir: Optional. A file that includes additional path information to be appended to the end of destination.

Example

# Extends example in Source Configuration

jobs:
- name:
  plan:
  - do:
    - get: code # git resource
    - put: rclone
      params:
        source: code
        destination: "remote:backup"
        subdir: code/target

License

Copyright 2020 Drew Short

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.