@@ -8,7 +8,7 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
./mvnw install -B \
|
||||
-Dskip.build.image=true \
|
||||
-Dspring-boot.build-image.skip=true \
|
||||
-DskipTests -DskipITs \
|
||||
-T 1C -U -q
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ runs:
|
||||
- name: build project
|
||||
shell: bash
|
||||
run: |
|
||||
./mvnw clean install -Dskip.build.image=true -DskipITs -DskipTests -T1C -U -B -q
|
||||
./mvnw clean install -Dspring-boot.build-image.skip=true -DskipITs -DskipTests -T1C -U -B -q
|
||||
|
||||
- name: build controllers project
|
||||
uses: ./.github/workflows/composites/build-controllers-project
|
||||
|
||||
@@ -47,7 +47,7 @@ runs:
|
||||
-Dmaven.wagon.http.pool=false \
|
||||
-Dmaven.wagon.http.retryHandler.class=standard \
|
||||
-Dmaven.wagon.http.retryHandler.count=3 \
|
||||
-Dskip.build.image=true
|
||||
-Dspring-boot.build-image.skip=true
|
||||
|
||||
touch /tmp/test_times_${{ env.CURRENT_INDEX }}.txt
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ runs:
|
||||
-Dmaven.wagon.http.pool=false \
|
||||
-Dmaven.wagon.http.retryHandler.class=standard \
|
||||
-Dmaven.wagon.http.retryHandler.count=3 \
|
||||
-Dskip.build.image=true
|
||||
-Dspring-boot.build-image.skip=true
|
||||
|
||||
touch /tmp/test_times_${{ env.CURRENT_INDEX }}.txt
|
||||
|
||||
|
||||
@@ -33,9 +33,6 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<id>build-image</id>
|
||||
<configuration>
|
||||
<skip>${skip.build.image}</skip>
|
||||
</configuration>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build-image-no-fork</goal>
|
||||
|
||||
@@ -13,9 +13,6 @@ you must name the image with the same name as the module. For example:
|
||||
<executions>
|
||||
<execution>
|
||||
<id>build-image</id>
|
||||
<configuration>
|
||||
<skip>${skip.build.image}</skip>
|
||||
</configuration>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build-image-no-fork</goal>
|
||||
@@ -36,7 +33,3 @@ Notice this line:
|
||||
<imageName>docker.io/springcloud/${project.artifactId}:${project.version}</imageName>
|
||||
|
||||
You must follow the same convention.
|
||||
|
||||
One more important part in this configuration is : "<skip>${skip.build.image}</skip>".
|
||||
We use this setting in the build pipeline where in some stages we skip the image build,
|
||||
only to have it build in some latter ones.
|
||||
|
||||
@@ -38,9 +38,6 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<id>build-image</id>
|
||||
<configuration>
|
||||
<skip>${skip.build.image}</skip>
|
||||
</configuration>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build-image-no-fork</goal>
|
||||
|
||||
Reference in New Issue
Block a user