File tree Expand file tree Collapse file tree 7 files changed +4
-17
lines changed
.github/workflows/composites
maven-build-with-dry-run-for-tests
run-and-save-test-times-when-cache-missing
run-and-save-test-times-when-cache-present
spring-cloud-kubernetes-controllers
spring-cloud-kubernetes-integration-tests Expand file tree Collapse file tree 7 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 8
8
shell : bash
9
9
run : |
10
10
./mvnw install -B \
11
- -Dskip .build. image=true \
11
+ -Dspring-boot .build- image.skip =true \
12
12
-DskipTests -DskipITs \
13
13
-T 1C -U -q
14
14
Original file line number Diff line number Diff line change 24
24
- name : build project
25
25
shell : bash
26
26
run : |
27
- ./mvnw clean install -Dskip .build. image=true -DskipITs -DskipTests -T1C -U -B -q
27
+ ./mvnw clean install -Dspring-boot .build- image.skip =true -DskipITs -DskipTests -T1C -U -B -q
28
28
29
29
- name : build controllers project
30
30
uses : ./.github/workflows/composites/build-controllers-project
Original file line number Diff line number Diff line change 47
47
-Dmaven.wagon.http.pool=false \
48
48
-Dmaven.wagon.http.retryHandler.class=standard \
49
49
-Dmaven.wagon.http.retryHandler.count=3 \
50
- -Dskip .build. image=true
50
+ -Dspring-boot .build- image.skip =true
51
51
52
52
touch /tmp/test_times_${{ env.CURRENT_INDEX }}.txt
53
53
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ runs:
156
156
-Dmaven.wagon.http.pool=false \
157
157
-Dmaven.wagon.http.retryHandler.class=standard \
158
158
-Dmaven.wagon.http.retryHandler.count=3 \
159
- -Dskip .build. image=true
159
+ -Dspring-boot .build- image.skip =true
160
160
161
161
touch /tmp/test_times_${{ env.CURRENT_INDEX }}.txt
162
162
Original file line number Diff line number Diff line change 33
33
<executions >
34
34
<execution >
35
35
<id >build-image</id >
36
- <configuration >
37
- <skip >${skip.build.image} </skip >
38
- </configuration >
39
36
<phase >package</phase >
40
37
<goals >
41
38
<goal >build-image-no-fork</goal >
Original file line number Diff line number Diff line change @@ -13,9 +13,6 @@ you must name the image with the same name as the module. For example:
13
13
<executions>
14
14
<execution>
15
15
<id>build-image</id>
16
- <configuration>
17
- <skip>${skip.build.image}</skip>
18
- </configuration>
19
16
<phase>package</phase>
20
17
<goals>
21
18
<goal>build-image-no-fork</goal>
@@ -36,7 +33,3 @@ Notice this line:
36
33
<imageName>docker.io/springcloud/${project.artifactId}:${project.version}</imageName>
37
34
38
35
You must follow the same convention.
39
-
40
- One more important part in this configuration is : "<skip>${skip.build.image}</skip>".
41
- We use this setting in the build pipeline where in some stages we skip the image build,
42
- only to have it build in some latter ones.
Original file line number Diff line number Diff line change 38
38
<executions >
39
39
<execution >
40
40
<id >build-image</id >
41
- <configuration >
42
- <skip >${skip.build.image} </skip >
43
- </configuration >
44
41
<phase >package</phase >
45
42
<goals >
46
43
<goal >build-image-no-fork</goal >
You can’t perform that action at this time.
0 commit comments