-
Notifications
You must be signed in to change notification settings - Fork 42
/
cloudbuild.yaml
42 lines (38 loc) · 1.23 KB
/
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
41
42
# Cloud Builder pipeline
# https://cloud.google.com/container-builder/docs/overview
steps:
# Build the openjdk image
- name: gcr.io/cloud-builders/docker
args: ['build', '.', '-f', 'Dockerfile.builder', '-t', 'builder']
- name: 'builder'
args:
- 'clean'
- 'install'
- '--batch-mode'
- '-Ddocker.image.name=${_IMAGE}'
# only build the specified module
- '--projects=${_MODULE}'
- '--also-make'
id: 'MVN_PACKAGE'
# temporarily this test is turned off while we restructure the testing infrastructure, to enable
# quicker release process
## Tag and push the openjdk image to a staging repository for integration testing
#- name: 'gcr.io/cloud-builders/docker'
# args: ['tag', '${_IMAGE}', '${_STAGING_IMAGE}']
# id: 'TAG_STAGING_IMG'
#- name: 'gcr.io/cloud-builders/docker'
# args: ['push', '${_STAGING_IMAGE}']
# id: 'PUSH_STAGING_IMG'
#
## Build a 'builder' image for running integration tests
#- name: 'gcr.io/cloud-builders/docker'
# args: ['build', '--tag=mvn-gcloud', 'java-runtimes-common/mvn-gcloud-image']
# waitFor: ['-']
# id: 'BUILD_MVN_GCLOUD'
#
## Execute integration tests
#- name: 'mvn-gcloud'
# entrypoint: 'scripts/integration_test.sh'
# args: ['${_STAGING_IMAGE}']
# id: 'INTEGRATION_TEST'
images: ['${_IMAGE}']