1616 generic : ${{ steps.filter.outputs.generic }}
1717 yq : ${{ steps.filter.outputs.yq}}
1818 c-sharp : ${{ steps.filter.outputs.c-sharp }}
19- image_tag : ${{ steps.set-tag.outputs.image_tag }}
2019 steps :
2120 - uses : actions/checkout@v3
2221
23- - name : Set image tag
24- id : set-tag
25- run : |
26- echo "image_tag=${{ github.sha }}-${{ github.run_id }}" >> $GITHUB_OUTPUT
27-
2822 - uses : dorny/paths-filter@v3
2923 id : filter
3024 with :
@@ -45,83 +39,18 @@ jobs:
4539 - '**'
4640 - '!external-providers/**'
4741
48- build-bases :
49- needs : detect-changes
50- runs-on : ubuntu-latest
51- strategy :
52- fail-fast : true
53- matrix :
54- include :
55- - provider : golang-dep-provider
56- image_name : golang-dep-provider
57- dockerfile : external-providers/golang-dependency-provider/Dockerfile
58- - provider : analyzer-lsp
59- image_name : konveyor-analyzer-lsp
60- dockerfile : Dockerfile
61- steps :
62- - uses : actions/checkout@v3
63-
64- - name : Build ${{ matrix.provider }} image
65- uses : konveyor/ci/build-image@main
66- with :
67- repo : konveyor/analyzer-lsp
68- checked_out : true
69- image_name : ${{ matrix.image_name }}
70- image_tag : ${{ needs.detect-changes.outputs.image_tag }}
71- dockerfile_path : ${{ matrix.dockerfile }}
72- build_context : .
73-
74- build-all-providers :
75- needs : [detect-changes, build-bases]
76- runs-on : ubuntu-latest
77- strategy :
78- fail-fast : true
79- matrix :
80- include :
81- - provider : java
82- image_name : java-provider
83- dockerfile : external-providers/java-external-provider/Dockerfile
84- build_args : JAVA_BUNDLE_TAG=latest
85- checked_out : true
86- - provider : generic
87- image_name : generic-provider
88- dockerfile : external-providers/generic-external-provider/Dockerfile
89- needs_golang_dep : true
90- build_args : GOLANG_DEP_IMAGE=localhost/golang-dep-provider:${{ needs.detect-changes.outputs.image_tag }}
91- checked_out : true
92- - provider : yq
93- image_name : yq-provider
94- dockerfile : external-providers/yq-external-provider/Dockerfile
95- checked_out : true
96- - provider : c-sharp
97- image_name : c-sharp-provider
98- dockerfile : Dockerfile
99- repo : konveyor/c-sharp-analyzer-provider
100- checked_out : false
101- cache-key-file : Cargo.lock
102- steps :
103- - uses : actions/checkout@v3
104- if : needs.detect-changes.outputs[matrix.provider] == 'true'
105-
106- - name : Build ${{ matrix.provider }} provider image
107- if : needs.detect-changes.outputs[matrix.provider] == 'true'
108- uses : konveyor/ci/build-image@main
109- with :
110- repo : ${{ matrix.repo || 'konveyor/analyzer-lsp' }}
111- checked_out : ${{ matrix.checked_out }}
112- image_name : ${{ matrix.image_name }}
113- image_tag : ${{ needs.detect-changes.outputs.image_tag }}
114- dockerfile_path : ${{ matrix.dockerfile }}
115- build_context : .
116- base_image : ${{ matrix.needs_golang_dep == true && format('golang-dep-provider--{0}', needs.detect-changes.outputs.image_tag) || '' }}
117- build_args : ${{ matrix.build_args || '' }}
118- cache-key-file : ${{ matrix.cache-key-file || 'go.sum' }}
119-
42+ build-images :
43+ name : Build e2e Images
44+ uses : shawn-hurley/ci/.github/workflows/e2e-image-build.yaml@main
45+ with :
46+ repo : ${{ github.repository }}
47+ ref : ${{ github.ref }}
48+
12049 provider-tests :
121- needs : [detect-changes, build-all-providers ]
50+ needs : [detect-changes, build-images ]
12251 runs-on : ubuntu-latest
12352 env :
124- TAG : ${{ needs.detect-changes.outputs.image_tag }}
53+ TAG : ${{ github.run_id }}
12554 strategy :
12655 fail-fast : false
12756 matrix :
@@ -182,7 +111,7 @@ jobs:
182111 if : needs.detect-changes.outputs[matrix.provider] == 'true'
183112 uses : actions/download-artifact@v4
184113 with :
185- pattern : ${{ format('{0}--{1}', matrix.artifact_pattern, needs.detect-changes.outputs.image_tag ) }}
114+ pattern : ${{ format('{0}--{1}', matrix.artifact_pattern, github.run_id ) }}
186115 path : /tmp/images
187116 merge-multiple : true
188117
@@ -203,13 +132,13 @@ jobs:
203132 podman volume create test-data
204133 podman run --rm -v test-data:/target:U,Z -v $(pwd)/${{ matrix.test-data }}:/src/:U,Z --entrypoint=cp alpine -a /src/. /target/
205134 podman pod create --name=analyzer-${{ matrix.provider }}
206- podman run --pod analyzer-${{ matrix.provider }} --name ${{ matrix.provider }}-provider -d -v test-data:/analyzer-lsp/examples:U,Z localhost/${{ matrix.image_name }}:${{ needs.detect-changes.outputs.image_tag }} --port 14651
135+ podman run --pod analyzer-${{ matrix.provider }} --name ${{ matrix.provider }}-provider -d -v test-data:/analyzer-lsp/examples:U,Z localhost/${{ matrix.image_name }}:${{ github.run_id }} --port 14651
207136 podman run --entrypoint /usr/local/bin/konveyor-analyzer --pod=analyzer-${{ matrix.provider }} \
208137 -v test-data:/analyzer-lsp/examples:U,Z \
209138 -v $(pwd)/${{ matrix.demo-output-path }}:/analyzer-lsp/output.yaml:U,Z \
210139 -v $(pwd)/${{ matrix.provider_settings-path }}:/analyzer-lsp/provider_settings.json:U,Z \
211140 -v $(pwd)/${{ matrix.testing-rules }}:/analyzer-lsp/rules:U,Z \
212- localhost/konveyor-analyzer-lsp:${{ needs.detect-changes.outputs.image_tag }} \
141+ localhost/konveyor-analyzer-lsp:${{ github.run_id }} \
213142 --output-file=/analyzer-lsp/output.yaml \
214143 --rules=/analyzer-lsp/rules \
215144 --provider-settings=/analyzer-lsp/provider_settings.json \
@@ -223,12 +152,12 @@ jobs:
223152
224153
225154 test :
226- needs : [detect-changes, build-all-providers , provider-tests]
155+ needs : [detect-changes, build-images , provider-tests]
227156 runs-on : ubuntu-latest
228157 env :
229- TAG : ${{ needs.detect-changes.outputs.image_tag }}
230- IMG_C_SHARP_PROVIDER : localhost/c-sharp-provider:${{ needs.detect-changes.outputs.image_tag }}
231- IMG_ANALYZER : localhost/konveyor-analyzer-lsp:${{ needs.detect-changes.outputs.image_tag }}
158+ TAG : ${{ github.run_id }}
159+ IMG_C_SHARP_PROVIDER : localhost/c-sharp-provider:${{ github.run_id }}
160+ IMG_ANALYZER : localhost/konveyor-analyzer-lsp:${{ github.run_id }}
232161 outputs :
233162 api_tests_ref : ${{ steps.extract-info.outputs.API_TESTS_REF }}
234163 tackle2_hub_tag : ${{ steps.extract-info.outputs.TACKLE2_HUB_TAG }}
@@ -279,7 +208,7 @@ jobs:
279208 uses : actions/download-artifact@v4
280209 with :
281210 path : /tmp/images
282- pattern : ${{ format('*--{0}', needs.detect-changes.outputs.image_tag ) }}
211+ pattern : ${{ format('*--{0}', github.run_id ) }}
283212 merge-multiple : true
284213
285214
@@ -313,8 +242,8 @@ jobs:
313242
314243 - name : Re-tag and push provider images to ttl.sh
315244 run : |
316- podman tag localhost/java-provider:${{ needs.detect-changes.outputs.image_tag }} ttl.sh/konveyor-java-external-provider-${{ github.sha }}:2h
317- podman tag localhost/generic-provider:${{ needs.detect-changes.outputs.image_tag }} ttl.sh/konveyor-generic-external-provider-${{ github.sha }}:2h
245+ podman tag localhost/java-provider:${{ github.run_id }} ttl.sh/konveyor-java-external-provider-${{ github.sha }}:2h
246+ podman tag localhost/generic-provider:${{ github.run_id }} ttl.sh/konveyor-generic-external-provider-${{ github.sha }}:2h
318247 podman push ttl.sh/konveyor-java-external-provider-${{ github.sha }}:2h
319248 podman push ttl.sh/konveyor-generic-external-provider-${{ github.sha }}:2h
320249
@@ -328,7 +257,7 @@ jobs:
328257 - name : Build addon and push images
329258 working-directory : tackle2-addon-analyzer
330259 run : |
331- sed -i "s,FROM quay.io/konveyor/analyzer-lsp\:latest,FROM localhost/konveyor-analyzer-lsp:${{ needs.detect-changes.outputs.image_tag }}," Dockerfile
260+ sed -i "s,FROM quay.io/konveyor/analyzer-lsp\:latest,FROM localhost/konveyor-analyzer-lsp:${{ github.run_id }}," Dockerfile
332261 IMG=ttl.sh/konveyor-tackle2-addon-analyzer-${GITHUB_SHA}:2h make image-podman
333262 podman push ttl.sh/konveyor-tackle2-addon-analyzer-${GITHUB_SHA}:2h
334263
@@ -343,10 +272,51 @@ jobs:
343272 - name : push bundle image
344273 run : |
345274 docker push ttl.sh/konveyor-operator-bundle-${GITHUB_SHA}:2h
275+
276+ koncur-kantra :
277+ needs : [test]
278+ strategy :
279+ fail-fast : false
280+ matrix :
281+ os :
282+ - os : " linux"
283+ runner : " ubuntu-24.04-arm"
284+ - os : " macos"
285+ runner : " macos-26-large"
286+ - os : " windows"
287+ runner : " windows-latest"
288+ exclude :
289+ - os :
290+ os : " macos"
291+ runner : " macos-26-large"
292+ runs-on : ${{ matrix.os.runner }}
293+ steps :
294+ - name : Run Koncur Testing
295+ id : koncur-test
296+ uses : shawn-hurley/ci/koncur-kantra@main
297+ with :
298+ os : ${{ matrix.os.os }}
299+ image_pattern : |
300+ *{kantra,provider}--${{ github.run_id }}
301+ ref : ${{ github.base_ref || inputs.ref || github.ref_name}}
302+
303+
304+ koncur-tackle-hub :
305+ needs : [test]
306+ runs-on : ubuntu-latest
307+ steps :
308+ - name : Test Hub with Koncur
309+ uses : shawn-hurley/ci/koncur-tackle-hub@main
310+ with :
311+ image_pattern : |
312+ *{tackle-keyloak-init,tackle2-*,provider}--${{ github.run_id }}
313+ ref : ${{ github.base_ref || inputs.ref || github.ref_name}}
314+
346315 e2e :
347316 needs : test
348317 uses : konveyor/ci/.github/workflows/global-ci-bundle.yml@main
349318 with :
350319 operator_bundle : ttl.sh/konveyor-operator-bundle-${{ github.sha }}:2h
351320 tackle_hub : " quay.io/konveyor/tackle2-hub:${{ needs.test.outputs.tackle2_hub_tag }}"
352321 api_tests_ref : " ${{ needs.test.outputs.api_tests_ref }}"
322+
0 commit comments