Skip to content

Commit e359b0e

Browse files
add GCB build step provider example
1 parent d358236 commit e359b0e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

graduated/build/step.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,27 @@ metadata:
3030
arguments:
3131
image_name: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
3232
tag: master
33+
- description: 'Delegate building image to Google Cloud Build'
34+
name: GCB
35+
workflow:
36+
GCBuild:
37+
title: Building docker image
38+
type: build
39+
working_directory: '${{CLONE_STEP_NAME}}'
40+
arguments:
41+
image_name: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
42+
tag: master
43+
provider:
44+
type: gcb
45+
arguments:
46+
google_app_creds: '${{G_CREDS_B64}}'
47+
cache:
48+
repo: "${{CF_REPO_OWNER}}/kaniko-cache"
49+
ttl: "10h"
50+
timeout: "600s"
51+
machineType: 'N1_HIGHCPU_8'
52+
logsBucket: "gs://your-project_id_cloudbuild/logs"
53+
diskSizeGb: 10
3354
spec:
3455
arguments: |
3556
{
@@ -111,6 +132,10 @@ spec:
111132
"disable_push": {
112133
"type": "boolean",
113134
"description": "Do not push to any registry automatically."
135+
},
136+
"provider": {
137+
"type": "object",
138+
"additionalProperties": true
114139
}
115140
}
116141
}

0 commit comments

Comments
 (0)