Skip to main content

alpha.dagger.io/gcp/gcs

Google Cloud Storage

import "alpha.dagger.io/gcp/gcs"

gcs.#Object

GCS Bucket object(s) sync

gcs.#Object Inputs

NameTypeDescription
config.region*null \| stringGCP region
config.zone*null \| stringGCP zone
config.projectstringGCP project
config.serviceKeydagger.#SecretGCP service key
sourcedagger.#ArtifactSource Artifact to upload to GCS
targetstringTarget GCS URL (eg. gs://\<bucket-name>/\<path>/\<sub-path>)
delete*false \| trueDelete files that already exist on remote destination
contentType*"" \| stringObject content type
always*true \| falseAlways write the object to GCS

gcs.#Object Outputs

NameTypeDescription
urlstringURL of the uploaded GCS object