File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,28 @@ permissions:
1111 contents : read
1212
1313jobs :
14- import :
14+ detect :
1515 runs-on : ubuntu-latest
1616 if : ${{ github.event.workflow_run.conclusion == 'success' }}
17+ outputs :
18+ images : ${{ steps.find.outputs.images }}
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+
23+ - name : Find all images
24+ id : find
25+ run : |
26+ images=$(find . -maxdepth 2 -name Containerfile | cut -d'/' -f2 | jq -R -s -c 'split("\n") | map(select(length > 0))')
27+ echo "images=$images" >> "$GITHUB_OUTPUT"
28+
29+ import :
30+ needs : detect
31+ if : needs.detect.outputs.images != '[]'
32+ runs-on : ubuntu-latest
1733 strategy :
1834 matrix :
19- image :
20- - runner
35+ image : ${{ fromJson(needs.detect.outputs.images) }}
2136
2237 steps :
2338 - name : Connect to Cloudflare WARP
3853 insecure_skip_tls_verify : true
3954
4055 - name : Import image to OpenShift
41- run : oc import-image ${{ matrix.image }} -n public-registry
56+ run : oc import-image ${{ matrix.image }} -n public-registry --confirm
You can’t perform that action at this time.
0 commit comments