| cr_buildtrigger_repo {googleCloudRunner} | R Documentation |
Create a buildtrigger repo object
Description
Create a repository trigger object for use in build triggers
Usage
cr_buildtrigger_repo(
repo_name,
branch = ".*",
tag = NULL,
type = c("github", "cloud_source"),
github_secret = NULL,
...
)
Arguments
repo_name |
Either the GitHub username/repo_name or the Cloud Source repo_name |
branch |
Regex of the branches that will trigger a build. Ignore if tag is not NULL |
tag |
Regex of tags that will trigger a build |
type |
Whether trigger is GitHub or Cloud Source repoistory |
github_secret |
If you need to pull from a private GitHub repo, add the github secret from Google Secret Manager which will be used via cr_buildstep_secret |
... |
Other arguments passed to either GitHubEventsConfig or RepoSource |
See Also
Other BuildTrigger functions:
BuildTrigger(),
GitHubEventsConfig(),
cr_buildtrigger_copy(),
cr_buildtrigger_delete(),
cr_buildtrigger_edit(),
cr_buildtrigger_get(),
cr_buildtrigger_list(),
cr_buildtrigger_pubsub(),
cr_buildtrigger_run(),
cr_buildtrigger_webhook(),
cr_buildtrigger()