-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
29 lines (29 loc) · 1 KB
/
cloudbuild.yaml
File metadata and controls
29 lines (29 loc) · 1 KB
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
# This config is provided for development/testing purposes only.
# The official Docker image of stackdriver-prometheus-sidecar is not built
# using this config.
steps:
- name: 'mirror.gcr.io/library/golang'
entrypoint: make
args: ['format']
- name: 'mirror.gcr.io/library/golang'
entrypoint: make
args: ['build']
- name: 'mirror.gcr.io/library/golang'
entrypoint: make
args: ['test']
- name: docker
args: [
'build',
'-t', 'gcr.io/$PROJECT_ID/stackdriver-prometheus-sidecar:${TAG_NAME}${BRANCH_NAME}',
'-t', 'gcr.io/$PROJECT_ID/stackdriver-prometheus-sidecar:${TAG_NAME}${BRANCH_NAME}-${SHORT_SHA}',
'-t', 'gcr.io/$PROJECT_ID/stackdriver-prometheus-sidecar:${SHORT_SHA}',
'.'
]
images: [
'gcr.io/$PROJECT_ID/stackdriver-prometheus-sidecar:${TAG_NAME}${BRANCH_NAME}',
'gcr.io/$PROJECT_ID/stackdriver-prometheus-sidecar:${TAG_NAME}${BRANCH_NAME}-${SHORT_SHA}',
'gcr.io/$PROJECT_ID/stackdriver-prometheus-sidecar:${SHORT_SHA}'
]
options:
diskSizeGb: 200
machineType: 'N1_HIGHCPU_8'