Do we need three cloudbuild.yml files for a simple setup in Google Cloud Container Builder?

4/5/2017

On Google Cloud Container Builder we want to:

  • Push any branch to REPO:BRANCH
  • Push any tag to REPO:TAG
  • Push master to REPO:latest

Do we need a separate cloudbuild.yml file for each? Is there a lighter way of doing this?

We need to use a file rather than a trigger in the UI, because the build takes 20 minutes, and the timeout of the UI triggers are 10 minutes.

-- Maximilian
google-cloud-repository
google-container-registry
google-kubernetes-engine

1 Answer

4/12/2017

At this time, using three different config files for the different naming schemes is the best solution.

Letting you use a single config file for all the ways you want to build (different triggers on the same repo, or from gcloud directly, etc) is one of our goals, so we'll take your use-case into consideration.

-- John Asmuth
Source: StackOverflow