forked from kopeio/etcd-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild-master.yaml
34 lines (30 loc) · 1.25 KB
/
cloudbuild-master.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
31
32
33
34
steps:
- name: gcr.io/cloud-builders/bazel
args: ['version']
- name: gcr.io/cloud-builders/bazel
args: ['build', '//cmd/...', '//images:etcd-manager', '//images:etcd-backup', '//images:etcd-dump']
# To build with GCS cache
#args: ['build', '--google_default_credentials', '--spawn_strategy=remote', '--genrule_strategy=remote', '--strategy=Javac=remote', '--strategy=Closure=remote', '--remote_http_cache=https://storage.googleapis.com/cache-bucket', '//cmd/...']
- name: gcr.io/cloud-builders/bazel
args: ['test', '//test/...', '--test_output=streamed', '--local_test_jobs=1']
- name: gcr.io/cloud-builders/bazel
args: ['run', '//images:push-etcd-manager']
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
- name: gcr.io/cloud-builders/bazel
args: ['run', '//images:push-etcd-dump']
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
- name: gcr.io/cloud-builders/bazel
args: ['run', '//images:push-etcd-backup']
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
timeout: 1800s
options:
machineType: N1_HIGHCPU_8