Restore machine type for base images. (#7652)

* Restore machine type for base images.

This was removed when moving project builds to private pools.

* format
This commit is contained in:
Oliver Chang 2022-05-02 18:10:33 +10:00 committed by GitHub
parent 03719efa0a
commit 2fe4371409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ def run_build(steps, images, tags=None, build_version=MAJOR_TAG):
"""Execute the retrieved build steps in gcb."""
credentials, _ = google.auth.default()
body_overrides = {
'images': images + [f'{image}:{build_version}' for image in images]
'images': images + [f'{image}:{build_version}' for image in images],
'options': {
'machineType': 'E2_HIGHCPU_32'
},
}
return build_lib.run_build(steps,
credentials,