This helps the common use case of building a Dockerfile based on the contents of a GitHub repo, and sets up a build trigger so it will build on every commit.
cr_deploy_github_docker(
x,
image = x,
branch = ".*",
image_tag = "$SHORT_SHA",
dockerfile_location = ".",
github_tag = NULL,
timeout = 600L,
projectId = cr_project_get()
)
The GitHub repo e.g. MarkEdmondson1234/googleCloudRunner
The name of the image you want to build
A regex of the GitHub branches that will trigger a build
What to tag the build docker image
Where the Dockerfile sits within the GitHub repo
Regexes matching what tags to build. If not NULL then argument branch will be ignored
timeout for the Docker build
The project to build under
Build trigger API is experimental so this function is in development.
cr_deploy_docker which lets you build Dockerfiles for more generic use cases
Other Deployment functions:
cr_deploy_docker()
,
cr_deploy_git_html()
,
cr_deploy_packagetests()
,
cr_deploy_pkgdown()
,
cr_deploy_run()
,
cr_deploy_r()