Skip to content

Commit 305694e

Browse files
committed
Merge branch '2.2.x' into 2.3.x
2 parents aa24d62 + babae11 commit 305694e

File tree

5 files changed

+53
-16
lines changed

5 files changed

+53
-16
lines changed

ci/images/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $ docker build --no-cache -f <image-folder>/Dockerfile .
1111
For example
1212

1313
----
14-
$ docker build --no-cache -f spring-boot-ci-image/Dockerfile .
14+
$ docker build --no-cache -f ci-image/Dockerfile .
1515
----
1616

1717
To test run:

ci/parameters.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ artifactory-server: "https://repo.spring.io"
88
branch: "2.3.x"
99
milestone: "2.3.x"
1010
build-name: "spring-boot"
11-
ci-image-name: "spring-boot-ci-23x"
1211
concourse-url: "https://ci.spring.io"
1312
bintray-subject: "spring"
1413
bintray-repo: "jars"

ci/pipeline.yml

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ anchors:
44
username: ((github-username))
55
password: ((github-password))
66
branch: ((branch))
7-
docker-resource-source: &docker-resource-source
7+
registry-image-resource-source: &registry-image-resource-source
88
username: ((docker-hub-username))
99
password: ((docker-hub-password))
1010
tag: ((milestone))
@@ -144,20 +144,20 @@ resources:
144144
type: registry-image
145145
icon: docker
146146
source:
147-
<<: *docker-resource-source
148-
repository: ((docker-hub-organization))/((ci-image-name))
147+
<<: *registry-image-resource-source
148+
repository: ((docker-hub-organization))/spring-boot-ci
149149
- name: ci-image-jdk11
150150
type: registry-image
151151
icon: docker
152152
source:
153-
<<: *docker-resource-source
154-
repository: ((docker-hub-organization))/((ci-image-name))-jdk11
153+
<<: *registry-image-resource-source
154+
repository: ((docker-hub-organization))/spring-boot-ci-jdk11
155155
- name: ci-image-jdk15
156156
type: registry-image
157157
icon: docker
158158
source:
159-
<<: *docker-resource-source
160-
repository: ((docker-hub-organization))/((ci-image-name))-jdk15
159+
<<: *registry-image-resource-source
160+
repository: ((docker-hub-organization))/spring-boot-ci-jdk15
161161
- name: artifactory-repo
162162
type: artifactory-resource
163163
icon: package-variant
@@ -211,19 +211,39 @@ jobs:
211211
plan:
212212
- get: ci-images-git-repo
213213
trigger: true
214+
- get: git-repo
215+
- in_parallel:
216+
- task: build-ci-image
217+
privileged: true
218+
file: git-repo/ci/tasks/build-ci-image.yml
219+
output_mapping:
220+
image: ci-image
221+
vars:
222+
ci-image-name: ci-image
223+
- task: build-ci-image-jdk11
224+
privileged: true
225+
file: git-repo/ci/tasks/build-ci-image.yml
226+
output_mapping:
227+
image: ci-image-jdk11
228+
vars:
229+
ci-image-name: ci-image-jdk11
230+
- task: build-ci-image-jdk15
231+
privileged: true
232+
file: git-repo/ci/tasks/build-ci-image.yml
233+
output_mapping:
234+
image: ci-image-jdk15
235+
vars:
236+
ci-image-name: ci-image-jdk15
214237
- in_parallel:
215238
- put: ci-image
216239
params:
217-
build: ci-images-git-repo/ci/images
218-
dockerfile: ci-images-git-repo/ci/images/ci-image/Dockerfile
240+
image: ci-image/image.tar
219241
- put: ci-image-jdk11
220242
params:
221-
build: ci-images-git-repo/ci/images
222-
dockerfile: ci-images-git-repo/ci/images/ci-image-jdk11/Dockerfile
243+
image: ci-image-jdk11/image.tar
223244
- put: ci-image-jdk15
224245
params:
225-
build: ci-images-git-repo/ci/images
226-
dockerfile: ci-images-git-repo/ci/images/ci-image-jdk15/Dockerfile
246+
image: ci-image-jdk15/image.tar
227247
- name: detect-jdk-updates
228248
plan:
229249
- get: git-repo

ci/tasks/build-ci-image.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
platform: linux
3+
image_resource:
4+
type: registry-image
5+
source:
6+
repository: vito/oci-build-task
7+
inputs:
8+
- name: ci-images-git-repo
9+
outputs:
10+
- name: image
11+
caches:
12+
- path: ci-image-cache
13+
params:
14+
CONTEXT: ci-images-git-repo/ci/images
15+
DOCKERFILE: ci-images-git-repo/ci/images/((ci-image-name))/Dockerfile
16+
REGISTRY_MIRRORS: ((dockerhub-registry-mirror))
17+
run:
18+
path: build

ci/tasks/generate-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
platform: linux
33
image_resource:
4-
type: docker-image
4+
type: registry-image
55
source:
66
repository: springio/github-changelog-generator
77
tag: '0.0.5'

0 commit comments

Comments
 (0)