Drone plugins > Google Cloud Storage
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
stringrequiredcredentials to access Google Cloud Storage
Secret recommendedDefault: none
acl
arrayoptionala list of access rules applied to the uploaded files, in a form of entity:role
Default: none
source
stringrequiredlocation of files to upload
Default: none
ignore
stringoptionalskip files matching this pattern, relative to source
Default: none
target
stringrequireddestination to copy files to, including bucket name
Default: none
gzip
stringoptionalfiles with the specified extensions will be gzipped and uploaded with "gzip" Content-Encoding header e.g. js,css,html
Default: none
cache_control
stringoptionalCache-Control header
Default: none
metadata
stringoptionalan arbitrary dictionary with custom metadata applied to all objects
Default: none