-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
40 lines (36 loc) · 912 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
31
32
33
34
35
36
37
38
39
40
steps:
- id: 'restore cache'
name: 'gcr.io/$PROJECT_ID/restore_cache'
args:
- '--bucket=gs://sbt_cache'
- '--key=build-cache-$( checksum build.sbt )'
waitFor: ['-']
- id: 'check cache'
name: 'ubuntu'
entrypoint: 'bash'
args:
- '-c'
- |
ls -lah /workspace/.ivy2/cache | wc -l
waitFor: ['restore cache']
- id: 'compile'
name: 'gcr.io/$PROJECT_ID/scala-sbt'
args: ['-ivy', '/workspace/.ivy2', 'compile', 'test']
waitFor: ['restore cache']
- id: 'check files again'
name: 'ubuntu'
entrypoint: 'bash'
args:
- '-c'
- |
pwd
ls -lah
waitFor: ['compile']
- id: 'save cache'
name: 'gcr.io/$PROJECT_ID/save_cache'
args:
- --bucket=gs://sbt_cache
- --key=build-cache-$( checksum build.sbt )
- --path=/workspace/.ivy2/cache
- --no-clobber
waitFor: ['compile']