forked from GoogleCloudPlatform/professional-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
19 lines (19 loc) · 697 Bytes
/
cloudbuild.yaml
File metadata and controls
19 lines (19 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
steps:
- name: gcr.io/cloud-builders/gsutil
entrypoint: '/bin/bash'
args: ['-c', 'gsutil -m cp -r gs://${PROJECT_ID}_cache/.ivy2 /workspace || true']
id: retrieve-cache
- name: 'gcr.io/$PROJECT_ID/scala-sbt'
args: ['-ivy', '/workspace/.ivy2/', 'clean', 'update', 'compile', 'test']
id: compile-and-test
- name: 'gcr.io/$PROJECT_ID/scala-sbt'
args: ['-ivy', '/workspace/.ivy2/', 'pack']
id: create-package
- name: gcr.io/cloud-builders/gsutil
entrypoint: '/bin/bash'
args: ['-c', 'gsutil -m cp -r /workspace/.ivy2 gs://${PROJECT_ID}_cache/ || true']
id: upload-cache
artifacts:
objects:
location: 'gs://${PROJECT_ID}_pkgs/kafka2avro/'
paths: ['target/pack/lib/*.jar']