MarkEdmondson1234 / googleCloudRunner

Easy R scripts on Google Cloud Platform via Cloud Run, Cloud Build and Cloud Scheduler
https://code.markedmondson.me/googleCloudRunner/
Other
81 stars 26 forks source link

ENH: autodetect on buildTrigger #138

Open muschellij2 opened 2 years ago

muschellij2 commented 2 years ago

As per https://cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.triggers#BuildTrigger: build_template can be "autodetect". So if build is NULL, file is NULL, then may want to default to autodetect, which I think is the default with the trigger GUI.

Autodetect build configuration. The following precedence is used (case insensitive):

cloudbuild.yaml
cloudbuild.yml
cloudbuild.json
Dockerfile
MarkEdmondson1234 commented 2 years ago

This has caused me issues in the past so if its there would like it opt-in rather than the opt-out version it was for a while online.