/
cloudbuild.yaml
51 lines (45 loc) · 1.28 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
43
44
45
46
47
48
49
50
51
# In this directory, run the following command to build this builder.
# $ gcloud builds submit
steps:
# Build old tagged images.
# TODO(jasonhall): Deprecate and stop building these tagged images. Users
# should use the official maven image directly.
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--build-arg=MAVEN_VERSION=3.3.9-jdk-8'
- '--tag=gcr.io/$PROJECT_ID/mvn:3.3.9-jdk-8'
- '.'
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--build-arg=MAVEN_VERSION=3.5.0-jdk-8'
- '--tag=gcr.io/$PROJECT_ID/mvn:3.5.0-jdk-8'
- '.'
# Build the latest version.
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--tag=gcr.io/$PROJECT_ID/mvn'
- '.'
# Minimally invoke Maven.
- name: 'gcr.io/$PROJECT_ID/mvn'
args: ['--version']
# Run example builds.
- name: 'gcr.io/$PROJECT_ID/mvn:3.3.9-jdk-8'
args: ['install']
dir: 'examples/spring_boot'
- name: 'gcr.io/$PROJECT_ID/mvn:3.5.0-jdk-8'
args: ['install']
dir: 'examples/spring_boot'
- name: 'gcr.io/$PROJECT_ID/mvn'
args: ['install']
dir: 'examples/spring_boot'
# Demonstrate using the maven image directly.
- name: 'maven'
args: ['mvn', 'install']
dir: 'examples/spring_boot'
images:
- 'gcr.io/$PROJECT_ID/mvn:3.3.9-jdk-8'
- 'gcr.io/$PROJECT_ID/mvn:3.5.0-jdk-8'
- 'gcr.io/$PROJECT_ID/mvn'