Drone plugins > Google Cloud Storage
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
- tokenstringrequired- credentials to access Google Cloud Storage Secret recommended- Default: none 
- aclarrayoptional- a list of access rules applied to the uploaded files, in a form of entity:role - Default: none 
- sourcestringrequired- location of files to upload - Default: none 
- ignorestringoptional- skip files matching this pattern, relative to source - Default: none 
- targetstringrequired- destination to copy files to, including bucket name - Default: none 
- gzipstringoptional- files with the specified extensions will be gzipped and uploaded with "gzip" Content-Encoding header e.g. js,css,html - Default: none 
- cache_controlstringoptional- Cache-Control header - Default: none 
- metadatastringoptional- an arbitrary dictionary with custom metadata applied to all objects - Default: none