File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 50
50
with :
51
51
output_file : custom_maven_settings.xml
52
52
servers : ' [{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
53
+ - name : Build Native with Maven
54
+ if : ${{ github.event_name == 'pull_request' }}
55
+ run : ./mvnw -s custom_maven_settings.xml -B -Pbuild-image clean verify
53
56
- name : Build with Maven
57
+ if : ${{ github.event_name == 'push' }}
54
58
run : ./mvnw -s custom_maven_settings.xml -B clean verify
Original file line number Diff line number Diff line change 66
66
./mvnw -B -s custom_maven_settings.xml \
67
67
-DaltDeploymentRepository=github-packages-compas::default::https://maven.pkg.github.com/com-pas/compas-scl-validator \
68
68
-Dmaven.deploy.skip=snapshots \
69
- -Prelease clean deploy
69
+ -Pbuild-image,release clean deploy
70
70
env :
71
71
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -169,15 +169,22 @@ SPDX-License-Identifier: Apache-2.0
169
169
</build >
170
170
171
171
<profiles >
172
+ <profile >
173
+ <id >build-image</id >
174
+
175
+ <properties >
176
+ <!-- Make a Docker Image, so the integration tests will be executed against the container -->
177
+ <quarkus .container-image.build>true</quarkus .container-image.build>
178
+ </properties >
179
+ </profile >
180
+
172
181
<profile >
173
182
<id >native</id >
174
183
175
184
<properties >
176
185
<quarkus .package.type>native</quarkus .package.type>
177
186
<!-- Allows for creating a Linux executable without GraalVM being installed -->
178
187
<quarkus .native.container-build>true</quarkus .native.container-build>
179
- <!-- Also make a Docker Image, so the native test will be executed against the container -->
180
- <quarkus .container-image.build>true</quarkus .container-image.build>
181
188
<quarkus .native.additional-build-args>
182
189
--allow-incomplete-classpath
183
190
</quarkus .native.additional-build-args>
@@ -228,7 +235,6 @@ SPDX-License-Identifier: Apache-2.0
228
235
<id >release</id >
229
236
230
237
<properties >
231
- <quarkus .container-image.build>true</quarkus .container-image.build>
232
238
<!-- Properties only used for publishing a native docker image (default to Docker Hub) -->
233
239
<quarkus .container-image.push>true</quarkus .container-image.push>
234
240
<quarkus .container-image.additional-tags>latest</quarkus .container-image.additional-tags>
You can’t perform that action at this time.
0 commit comments