From 97e4cd91e2ad25bd46a4df35fd06f957ee78ed23 Mon Sep 17 00:00:00 2001 From: Shawn Hurley Date: Tue, 2 Dec 2025 10:51:06 -0500 Subject: [PATCH 1/2] Adding ability to ask for java provider rebuild after image build Currently, we have to manually do this, to take any changes from this base image, and this has led to many issues with debugging CI. Automatically doing this, will help keeps things sane. Signed-off-by: Shawn Hurley --- .github/workflows/image-build.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml index 60bc7dd..eafec91 100644 --- a/.github/workflows/image-build.yaml +++ b/.github/workflows/image-build.yaml @@ -24,3 +24,22 @@ jobs: secrets: registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }} registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }} + + build_image_analyzer: + name: trigger java provider rebuild + runs-on: ubuntu + steps: + - name: Get Token + id: get_workflow_token + uses: peter-murray/workflow-application-token-action@v3 + with: + application_id: ${{ vars.KONVEYOR_BOT_ID }} + application_private_key: ${{ secrets.KONVEYOR_BOT_KEY }} + + // Tell the analyzer to re-build it's images to get the update image. + - uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ steps.get_workflow_token.outputs.token }} + repository: "konveyor/analyzer-lsp" + event-type: rebuild-java-provider + client-payload: '{"ref": "${{ github.ref_name }}"}' From 2bba014864617236c32a81494e49c88e62189d34 Mon Sep 17 00:00:00 2001 From: Shawn Hurley Date: Tue, 2 Dec 2025 23:27:46 -0500 Subject: [PATCH 2/2] fixup Signed-off-by: Shawn Hurley --- .github/workflows/image-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml index eafec91..e9689a1 100644 --- a/.github/workflows/image-build.yaml +++ b/.github/workflows/image-build.yaml @@ -36,10 +36,10 @@ jobs: application_id: ${{ vars.KONVEYOR_BOT_ID }} application_private_key: ${{ secrets.KONVEYOR_BOT_KEY }} - // Tell the analyzer to re-build it's images to get the update image. + # Tell the analyzer to re-build it's images to get the update image. - uses: peter-evans/repository-dispatch@v4 with: token: ${{ steps.get_workflow_token.outputs.token }} repository: "konveyor/analyzer-lsp" event-type: rebuild-java-provider - client-payload: '{"ref": "${{ github.ref_name }}"}' + client-payload: '{"ref": "${{ github.ref}}", "ref_name": "${{ github.ref_name }}"}'