Skip to content

Commit 76f3393

Browse files
committed
Test image
1 parent 0df2dc0 commit 76f3393

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: build
22

33
on:
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

.github/workflows/run.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
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:
@@ -32,6 +39,7 @@ jobs:
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 }}
@@ -40,6 +48,7 @@ jobs:
4048
run: make logs
4149

4250
runner:
51+
needs: build
4352
runs-on: arc-runner-set
4453
timeout-minutes: 10
4554
steps:

helmfile.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

2734
helmDefaults:
2835
wait: true

0 commit comments

Comments
 (0)