-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloudbuild-pr.yaml
43 lines (43 loc) · 1.17 KB
/
cloudbuild-pr.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
steps:
- name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
args: [ '-c', "gcloud secrets versions access latest --secret=acceptance_api_jks --format='get(payload.data)' | tr '_-' '/+' | base64 -d > cluster/api.jks" ]
- name: 'gcr.io/cloud-builders/gsutil'
id: 'Prime Maven cache'
args:
- '-m'
- 'rsync'
- '-r'
- 'gs://hmf-build-caches/pipeline5/.m2'
- '/cache/.m2'
volumes:
- path: '/cache/.m2'
name: 'm2_cache'
- name: hartwigmedicalfoundation/docker-mvn-gcloud:3-jdk-11
id: 'Deploy artifacts to Maven repository'
entrypoint: mvn
timeout: 3600s
args:
- 'install'
- '-Drelease'
- '--batch-mode'
env:
- MAVEN_OPTS=-Dmaven.repo.local=/cache/.m2
volumes:
- path: '/cache/.m2'
name: 'm2_cache'
- name: 'gcr.io/cloud-builders/gsutil'
id: 'Update Maven cache after dependency resolution'
args:
- '-m'
- 'rsync'
- '-r'
- '/cache/.m2'
- 'gs://hmf-build-caches/pipeline5/.m2/'
volumes:
- path: '/cache/.m2'
name: 'm2_cache'
logsBucket: 'gs://hmf-build-logs'
timeout: 4800s
options:
machineType: 'N1_HIGHCPU_32'