Skip to content

Commit 2676c16

Browse files
Update Ubuntu
Add GitHub App logic Prepate 2.320.0-4-rc1 Signed-off-by: Jacob Woffenden <jacob.woffenden@justice.gov.uk>
1 parent 76de7e2 commit 2676c16

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#checkov:skip=CKV_DOCKER_2:actions/runner does not provider a mechanism for checking the health of the service
2-
FROM public.ecr.aws/ubuntu/ubuntu@sha256:5b2fc4131b3c134a019c3ea815811de70e6ad9ee1626f59bf302558a95b436e5
2+
FROM public.ecr.aws/ubuntu/ubuntu@sha256:fb95efe0d22be277f10250f15e5172ec0fe22c37eca2ba55e78b526c447eec23
33

44
LABEL org.opencontainers.image.vendor="Ministry of Justice" \
55
org.opencontainers.image.authors="Analytical Platform" \

chart/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ apiVersion: v2
33
name: actions-runner
44
description: Deploy GitHub Actions self-hosted runner
55
type: application
6-
version: 2.320.0-3
7-
appVersion: 2.320.0-3
6+
version: 2.320.0-4-rc1
7+
appVersion: 2.320.0-4-rc1
88
icon: https://upload.wikimedia.org/wikipedia/en/thumb/4/4a/Ministry_of_Justice_logo_%28United_Kingdom%29.svg/611px-Ministry_of_Justice_logo_%28United_Kingdom%29.svg.png
99
maintainers:
1010
- name: moj-data-platform-robot

chart/templates/scaled-job.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ metadata:
66
name: {{ .Release.Name }}-github-trigger-auth
77
spec:
88
secretTargetRef:
9-
- parameter: personalAccessToken
10-
name: {{ .Values.github.tokenSecretName }}
11-
key: {{ .Values.github.tokenSecretKey }}
9+
- parameter: appKey
10+
name: {{ .Values.keda.triggerAuthentication.secretTargetRef.name }}
11+
key: {{ .Values.keda.triggerAuthentication.secretTargetRef.key }}
1212
---
1313
apiVersion: keda.sh/v1alpha1
1414
kind: ScaledJob
@@ -77,6 +77,8 @@ spec:
7777
repos: {{ .Values.github.repository }}
7878
labels: {{ .Values.github.runner.labels | quote }}
7979
runnerScope: "repo"
80+
applicationID: {{ .Values.github.app.applicationID }}
81+
installationID: {{ .Values.github.app.installationID }}
8082
authenticationRef:
8183
name: {{ .Release.Name }}-github-trigger-auth
8284
{{- end }}

chart/values.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ replicaCount: 1
77
image:
88
pullPolicy: IfNotPresent
99
repository: ghcr.io/ministryofjustice/analytical-platform-actions-runner
10-
tag: 2.320.0-3
10+
tag: 2.320.0-4-rc1
1111

1212
imagePullSecrets: []
1313

@@ -40,12 +40,19 @@ github:
4040
tokenSecretKey: token
4141
runner:
4242
labels:
43+
app:
44+
applicationID:
45+
installationID:
4346

4447
ephemeral:
4548
enabled: true
4649
karpenter:
4750
enabled: true
4851
nodePool: "general-spot"
4952
keda:
50-
maxReplicaCount: 15
53+
triggerAuthentication:
54+
secretTargetRef:
55+
name: actions-runners-github-app-apc-self-hosted-runners
56+
key: private-key
57+
maxReplicaCount: 20
5158
pollingInterval: 20

0 commit comments

Comments
 (0)