cr_build_source: Build a source object

View source: R/build_sources.R

cr_build_sourceR Documentation

Build a source object

Description

This creates a source object for a build. Note you may instead want to use sources connected to a Build Trigger in which case see cr_buildtrigger_repo

Usage

cr_build_source(x)

## S3 method for class 'gar_RepoSource'
cr_build_source(x)

## S3 method for class 'gar_StorageSource'
cr_build_source(x)

Arguments

x

A RepoSource or a StorageSource object

Examples


repo <- RepoSource("my_repo", branchName = "master")
gcs <- StorageSource("my_code.tar.gz", "gs://my-bucket")

cr_build_source(repo)
cr_build_source(gcs)

my_gcs_source <- cr_build_source(gcs)
my_repo_source <- cr_build_source(repo)
## Not run: 

build1 <- cr_build("cloudbuild.yaml", source = my_gcs_source)
build2 <- cr_build("cloudbuild.yaml", source = my_repo_source)

## End(Not run)


MarkEdmondson1234/googleCloudRunner documentation built on Feb. 5, 2023, 5:45 p.m.