Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.21 KB

gcs_upload.md

File metadata and controls

43 lines (27 loc) · 1.21 KB

gcs_upload

gcs_upload(name, src, destination)

Rule used to upload a single file to a Google Cloud Storage bucket

To load the rule use:

load("//gcs:defs.bzl", "gcs_upload")

Example of use:

load("//gcs:defs.bzl", "gcs_upload")

gcs_upload(
    name = "push",
    src = ":file",
    destination = "gs://my-bucket/file.zip"
)

This rule builds an executable. Use run instead of build to upload the file.

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this target. Name required
src Source file to upload Label required
destination Google storage destination url. Example: gs://my-bucket/file String required