My workflow involves a CI run on all non-master branches and a CD run on master. Ideally, these are the same except for the actual saving of artifacts.
It would be nice to have only one cloudbuild.yaml file that describes how to build, test, and save artifacts, and configure whether or not to perform the save operation when creating the trigger. So the single YAML could look like:
substitutions:
_A: B ...
steps:
- docker build
- maybe something else ...
images:
And with that one file Cloud Build will only save the file if the steps are successful _and_ the trigger is configured to perform the save.
I see other tight coupling issues with Cloud Build, but this seems like it might be the lowest hanging fruit in reducing unwanted coupling.
Thanks,
- Bruce