Drone plugins > Google Cloud Storage
google_gcs.svg

Google Cloud Storage

by drone-plugins


The GCS plugin can be used to publish files and artifacts to Google Cloud Storage.

Example

kind: pipeline
name: default

steps:
- name: upload  
  image: plugins/gcs
  settings:
    source: dist
    target: bucket/dir/
    ignore: bin/*
    acl: allUsers:READER,user@domain.com:OWNER
    gzip: js,css,html
    cache_control: public,max-age=3600
    metadata: {"x-goog-meta-foo":"bar"}
    token: your-google-token

Properties

  • token

    stringrequired

    credentials to access Google Cloud Storage

    Secret recommended

    Default: none

  • acl

    arrayoptional

    a list of access rules applied to the uploaded files, in a form of entity:role

    Default: none

  • source

    stringrequired

    location of files to upload

    Default: none

  • ignore

    stringoptional

    skip files matching this pattern, relative to source

    Default: none

  • target

    stringrequired

    destination to copy files to, including bucket name

    Default: none

  • gzip

    stringoptional

    files with the specified extensions will be gzipped and uploaded with "gzip" Content-Encoding header e.g. js,css,html

    Default: none

  • cache_control

    stringoptional

    Cache-Control header

    Default: none

  • metadata

    stringoptional

    an arbitrary dictionary with custom metadata applied to all objects

    Default: none