Skip to content

Commit

Permalink
Update cloudbuild config
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Jun 20, 2024
1 parent dd7134b commit 7258cf4
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,41 @@
steps:
- name: gcr.io/cloud-builders/bazel:5.4.0
entrypoint: bazel
args: ['version']

- name: gcr.io/cloud-builders/bazel:5.4.0
entrypoint: bazel
args: ['build', '//cmd/...', '//images:etcd-manager', '//images:etcd-manager-slim', '//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:5.4.0
entrypoint: bazel
args: ['test', '//test/...', '--test_output=streamed', '--local_test_jobs=1']

timeout: 3000s
- name: gcr.io/cloud-builders/bazel:5.4.0
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:5.4.0
args: ['run', '//images:push-etcd-manager-slim']
env:
- 'DOCKER_REGISTRY=${_DOCKER_REGISTRY}'
- 'DOCKER_IMAGE_PREFIX=${_DOCKER_IMAGE_PREFIX}'
- 'DOCKER_TAG=${COMMIT_SHA}'
- name: gcr.io/cloud-builders/bazel:5.4.0
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:5.4.0
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
machineType: E2_HIGHCPU_8
substitution_option: ALLOW_LOOSE

0 comments on commit 7258cf4

Please sign in to comment.