Skip to content

Commit 0bdb0cc

Browse files
committed
feat: make it possible to build from a fabric8 client PR
Signed-off-by: Chris Laprun <[email protected]>
1 parent 8bcb369 commit 0bdb0cc

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/build-for-quarkus-version.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ on:
4444
description: 'Quarkus PR number to use to run a QOSDK build with'
4545
type: string
4646
required: false
47+
fkc-pr:
48+
description: 'Fabric8 client PR number to use to run a QOSDK build with'
49+
type: string
50+
required: false
4751
java-version:
4852
description: 'Java version to build with'
4953
type: string
@@ -129,6 +133,25 @@ jobs:
129133
mvn -Dquickly
130134
cd -
131135
136+
- name: Check-out Fabric8 client PR if requested
137+
uses: actions/checkout@v4
138+
if: "${{ inputs.fkc-pr != '' }}"
139+
with:
140+
repository: fabric8io/kubernetes-client
141+
path: fkc
142+
143+
- name: Build Quarkus PR if requested
144+
if: "${{ inputs.fkc-pr != '' }}"
145+
id: build-fkc-pr
146+
run: |
147+
cd fkc
148+
git fetch origin pull/${{ github.event.inputs.fkc-pr }}/head:pr-to-check
149+
git switch pr-to-check
150+
./update-version.sh 999.${{ github.event.inputs.fkc-pr }}-SNAPSHOT
151+
echo "f8_pr_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
152+
mvn clean install -DskipTests
153+
cd -
154+
132155
- name: Retrieve Quarkus version from platform
133156
if: "${{ inputs.quarkus-version == '' && inputs.quarkus-pr == ''}}"
134157
id: get-quarkus-version
@@ -166,6 +189,12 @@ jobs:
166189
echo "Using Quarkus ${{ steps.quarkus-version.outputs.quarkus_version }}"
167190
mvn versions:set-property -P'${{steps.set-mvn-profiles.outputs.maven_profiles}}' -Dproperty=quarkus.version -DnewVersion=${{ steps.quarkus-version.outputs.quarkus_version }}
168191
192+
- name: Change Fabric8 client version
193+
if: "${{ inputs.fkc-pr != '' }}"
194+
run: |
195+
echo "Using Fabric8 ${{ steps.build-fkc-pr.outputs.f8_pr_version }}"
196+
mvn versions:set-property -Dproperty=fabric8-client.version -DnewVersion=${{ steps.build-fkc-pr.outputs.f8_pr_version }}
197+
169198
- name: Output versions being used
170199
run: |
171200
echo "QOSDK version: $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"

bom/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,16 @@
3838
<url>https://github.com/quarkiverse/quarkus-operator-sdk/issues/</url>
3939
</issueManagement>
4040

41+
<properties>
42+
<fabric8-client.version>6.12-SNAPSHOT</fabric8-client.version>
43+
</properties>
44+
4145
<dependencyManagement>
4246
<dependencies>
4347
<dependency>
4448
<groupId>io.fabric8</groupId>
4549
<artifactId>kubernetes-client-bom</artifactId>
46-
<version>6.12-SNAPSHOT</version>
50+
<version>${fabric8-client.version}</version>
4751
<type>pom</type>
4852
<scope>import</scope>
4953
</dependency>

0 commit comments

Comments
 (0)