forked from akasyagroup/stargate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild-4_0.yaml
62 lines (61 loc) · 1.79 KB
/
cloudbuild-4_0.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
steps:
- id: 'pull image'
name: 'gcr.io/stargateio/stargate-builder:v1.0.10'
entrypoint: 'bash'
args: [ '-c', 'echo pulled builder' ]
- id: 'fetch_secret'
waitFor: [ '-' ]
name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: [ '-c', "gcloud secrets versions access latest --secret=stargate-artifactory --format='get(payload.data)' | tr '_-' '/+' | base64 -d > /workspace/ci/custom-settings.xml" ]
- id: 'fetch codacy secret'
waitFor: [ '-' ]
name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: [ '-c', "gcloud secrets versions access latest --secret=codacy-project-token --format='get(payload.data)' | tr '_-' '/+' | base64 -d > /workspace/ci/codacy-project-token" ]
- id: 'init_cache'
name: 'gcr.io/cloud-builders/gsutil'
waitFor: [ '-' ]
args:
- '-m'
- '-q'
- 'rsync'
- '-r'
- '-x'
- '^.*io/stargate.*$'
- 'gs://${_BUCKET}/cache/.m2'
- '/cache/.m2'
volumes:
- path: '/cache/.m2'
name: 'm2_cache'
- id: 'cassandra-4.0'
waitFor: [ 'fetch_secret', 'init_cache' ]
name: 'gcr.io/stargateio/stargate-builder:v1.0.9'
entrypoint: 'bash'
args: [ 'ci/test.sh' ]
volumes:
- path: '/cache/.m2'
name: 'm2_cache'
env:
- 'MAVEN_OPTS=-Dmaven.repo.local=/cache/.m2'
- 'PERSISTENCE_BACKEND=cassandra-4.0'
- 'COMMIT_ID=$COMMIT_SHA'
- name: 'gcr.io/cloud-builders/gsutil'
waitFor: [ 'cassandra-4.0' ]
args:
- '-m'
- '-q'
- 'rsync'
- '-r'
- '-x'
- '^.*io/stargate.*$'
- '/cache/.m2'
- 'gs://${_BUCKET}/cache/.m2/'
volumes:
- path: '/cache/.m2'
name: 'm2_cache'
substitutions:
_BUCKET: 'stargateio-github_cloudbuild'
timeout: 14400s
options:
machineType: 'N1_HIGHCPU_32'