first test (#1853)

Signed-off-by: wind57 <eugen.rabii@gmail.com>
This commit is contained in:
erabii
2025-01-31 16:48:49 +02:00
committed by GitHub
parent b6bedd1b91
commit 428ebab0b5
7 changed files with 4 additions and 17 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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.

View File

@@ -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>