This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/reference/universe/gcp/gcs.md
Scott Lewis-Kelly 635b9306b8 stdlib: Add GCS support
The interface and behavior is identical to S3.

Signed-off-by: Scott Lewis-Kelly <slewiskelly@slewiskel.ly>
2021-06-30 16:23:32 +02:00

1.6 KiB

sidebar_label
gcs

alpha.dagger.io/gcp/gcs

Google Cloud Storage

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

gcs.#Object

GCS Bucket object(s) sync

gcs.#Object Inputs

Name Type Description
config.region string GCP region
config.project string GCP project
config.serviceKey dagger.#Secret GCP service key
source dagger.#Artifact Source Artifact to upload to GCS
target string Target GCS URL (eg. gs://<bucket-name>/<path>/<sub-path>)
delete *false | true Delete files that already exist on remote destination
contentType *"" | string Object content type
always *true | false Always write the object to GCS

gcs.#Object Outputs

Name Type Description
url string URL of the uploaded GCS object