File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 11name : build
22
33on :
4+ workflow_call :
5+ outputs :
6+ image-uri :
7+ description : image URI
8+ value : ${{ jobs.runner.outputs.image-uri }}
49 pull_request :
510 paths :
611 - .github/workflows/build.yaml
Original file line number Diff line number Diff line change @@ -21,7 +21,14 @@ concurrency:
2121 cancel-in-progress : true
2222
2323jobs :
24+ build :
25+ uses : ./.github/workflows/build.yaml
26+ permissions :
27+ contents : read
28+ packages : write
29+
2430 controller :
31+ needs : build
2532 runs-on : ubuntu-latest
2633 timeout-minutes : 10
2734 steps :
3239 - run : make cluster
3340 - run : make deploy
3441 env :
42+ RUNNER_IMAGE_URI : ${{ needs.build.outputs.image-uri }}
3543 APP_ID : ${{ secrets.APP_ID }}
3644 APP_INSTALLATION_ID : ${{ secrets.APP_INSTALLATION_ID }}
3745 APP_PRIVATE_KEY : ${{ secrets.APP_PRIVATE_KEY }}
4048 run : make logs
4149
4250 runner :
51+ needs : build
4352 runs-on : arc-runner-set
4453 timeout-minutes : 10
4554 steps :
Original file line number Diff line number Diff line change @@ -23,6 +23,13 @@ releases:
2323 github_app_id : {{ requiredEnv "APP_ID" | quote }}
2424 github_app_installation_id : {{ requiredEnv "APP_INSTALLATION_ID" | quote }}
2525 github_app_private_key : {{ requiredEnv "APP_PRIVATE_KEY" | quote }}
26+ template :
27+ spec :
28+ containers :
29+ - name : runner
30+ image : {{ requiredEnv "RUNNER_IMAGE_URI" | quote }}
31+ securityContext :
32+ privileged : true
2633
2734helmDefaults :
2835 wait : true
You can’t perform that action at this time.
0 commit comments