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 bafd642 commit d9786bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,21 @@ steps:
- name: "make-docker"
dir: "build"
args: ["pull-build-image"] # pull the build image if it exists
id: pull-build-image
- name: "make-docker"
dir: "build"
args: [ "test" ] # run tests
waitFor: ['pull-build-image']
id: tests
- name: "make-docker"
dir: "build"
args: [ "build", "push" ] # build all the things, and push images
waitFor: ['pull-build-image']
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 +50,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 d9786bf

Please sign in to comment.