WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2caa345

Browse files
authored
👻 Adding ability to ask for java provider rebuild after image build (#196)
* 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 <[email protected]> * fixup Signed-off-by: Shawn Hurley <[email protected]> --------- Signed-off-by: Shawn Hurley <[email protected]>
1 parent 2cf135d commit 2caa345

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/image-build.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,22 @@ jobs:
2424
secrets:
2525
registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }}
2626
registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }}
27+
28+
build_image_analyzer:
29+
name: trigger java provider rebuild
30+
runs-on: ubuntu
31+
steps:
32+
- name: Get Token
33+
id: get_workflow_token
34+
uses: peter-murray/workflow-application-token-action@v3
35+
with:
36+
application_id: ${{ vars.KONVEYOR_BOT_ID }}
37+
application_private_key: ${{ secrets.KONVEYOR_BOT_KEY }}
38+
39+
# Tell the analyzer to re-build it's images to get the update image.
40+
- uses: peter-evans/repository-dispatch@v4
41+
with:
42+
token: ${{ steps.get_workflow_token.outputs.token }}
43+
repository: "konveyor/analyzer-lsp"
44+
event-type: rebuild-java-provider
45+
client-payload: '{"ref": "${{ github.ref}}", "ref_name": "${{ github.ref_name }}"}'

0 commit comments

Comments
 (0)