Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Cloud Builder Faster #245

Merged
merged 2 commits into from
Jun 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'