Skip to content

Commit

Permalink
Make Cloud Builder Faster
Browse files Browse the repository at this point in the history
This should make Cloud Builder faster
- Request an 8 core machine
- Move the test and build steps to be parralel.
  • Loading branch information
markmandel committed Jun 6, 2018
1 parent ffd182e commit f17ae89
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ steps:
- name: "make-docker"
dir: "build"
args: [ "test" ] # run tests
waitFor: ['-']
id: tests
- name: "make-docker"
dir: "build"
args: [ "build", "push" ] # build all the things, and push images
waitFor: ['-']
id: build
- name: 'gcr.io/cloud-builders/gsutil'
dir: "sdks/cpp/bin"
args: ['cp', '*.tar.gz', 'gs://agones-artifacts/cpp-sdk']
waitFor: ['build', 'tests']
- name: 'gcr.io/cloud-builders/gsutil'
dir: "sdks/cpp/bin"
args: ['cp', '*.zip', 'gs://agones-artifacts/cpp-sdk']
Expand All @@ -44,3 +49,5 @@ steps:
args: ["push-build-image"] # push the build image (which won't do anything if it's already there)
timeout: "1h"
images: ['gcr.io/$PROJECT_ID/agones-controller', 'gcr.io/$PROJECT_ID/agones-sdk']
options:
machineType: 'N1_HIGHCPU_8'

0 comments on commit f17ae89

Please sign in to comment.