-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
cloudbuild.yaml
30 lines (28 loc) · 927 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
steps:
- name: "gcr.io/kaniko-project/executor:v1.16.0"
id: runtime-image
waitFor: ["-"]
args:
[
"--cache=true",
"--use-new-run",
"--build-arg",
"SOURCE_COMMIT=$COMMIT_SHA",
"--destination=us-central1-docker.pkg.dev/$PROJECT_ID/snuba/image:$COMMIT_SHA",
"--target=application",
"-f",
"./Dockerfile",
]
timeout: 1200s
# Pull docker image again, so we can get build info.
# https://github.com/GoogleCloudPlatform/cloud-builders-community/issues/212#issuecomment-1478828752
- name: docker
args: [pull, "us-central1-docker.pkg.dev/$PROJECT_ID/snuba/image:$COMMIT_SHA"]
# This is needed for Freight to find matching builds
images: [
'us-central1-docker.pkg.dev/$PROJECT_ID/snuba/image:$COMMIT_SHA',
]
timeout: 2640s
options:
# We need more memory for Webpack builds & e2e self-hosted tests
machineType: "E2_HIGHCPU_8"