Use n1-highcpu-32 machine and cache base image for 2 days in CI
# https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/go
steps:
-# Blocked by https://github.com/GoogleContainerTools/kaniko/issues/477
- id: 'Docker Image: open-match-build'
name: gcr.io/kaniko-project/executor
- args: ['--destination=gcr.io/$PROJECT_ID/open-match-build', '--cache=true', '--cache-ttl=6h', '--dockerfile=Dockerfile.ci', '.']
+ args: ['--destination=gcr.io/$PROJECT_ID/open-match-build', '--cache=true', '--cache-ttl=48h', '--dockerfile=Dockerfile.ci', '.']
waitFor: ['-']
- id: 'Build: Clean'
@@ -140,21 +139,6 @@ steps:
- name: 'go-vol'
path: '/go'
-#- id: 'Deploy: Create Cluster'
-# name: 'gcr.io/$PROJECT_ID/open-match-build'
-# args: ['make', 'create-gke-cluster', 'push-helm']
-# waitFor: ['Build: Docker Images']
-
-#- id: 'Deploy: Install Charts'
-# name: 'gcr.io/$PROJECT_ID/open-match-build'
-# args: ['make', 'sleep-10', 'install-chart', 'install-example-chart']
-# waitFor: ['Deploy: Create Cluster']
-
-#- id: 'Deploy: Teardown Cluster'
-# name: 'gcr.io/$PROJECT_ID/open-match-build'
-# args: ['make', 'sleep-10', 'delete-gke-cluster']
-# waitFor: ['Deploy: Install Charts']
-
artifacts:
objects:
location: gs://open-match-build-artifacts/output/
@@ -190,14 +174,5 @@ substitutions:
logsBucket: 'gs://open-match-build-logs/'
options:
sourceProvenanceHash: ['SHA256']
- machineType: 'N1_HIGHCPU_8'
-# TODO: The build is slow because we don't vendor. go get takes a very long time.
-# Also we are rebuilding a lot of code unnecessarily. This should improve once
-# we have new hermetic and reproducible Dockerfiles.
+ machineType: 'N1_HIGHCPU_32'
timeout: 1200s
-# TODO Build Steps
-# config/matchmaker_config.yaml: Lint this file so it's verified as a valid YAML file.
-# examples/profiles/*.json: Verify valid JSON files.
-#
-# Consolidate many of these build steps via Makefile.
-# Caching of dependencies is a serious problem. Cloud Build does not complete within 20 minutes!
