-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path06-github-actions-runner.yaml
48 lines (48 loc) · 1.69 KB
/
06-github-actions-runner.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: apps/v1
kind: Deployment
metadata:
name: github-actions-runner
namespace: hmpps-probation-integration
spec:
replicas: 1
selector:
matchLabels:
app: github-actions-runner
template:
metadata:
labels:
app: github-actions-runner
spec:
serviceAccountName: cd-serviceaccount
containers:
- name: runner
image: quay.io/hmpps/browser-testing-github-actions-runner:latest # Built from https://github.com/ministryofjustice/browser-testing-github-actions-runner
resources:
limits:
memory: 8000Mi
cpu: 2000m
securityContext:
runAsUser: 1001 # 'runner' user
env:
- name: RUNNER_NAME # Switch this to "RUNNER_NAME_PREFIX" if we start using multiple instances
value: hmpps-probation-integration-runner
- name: RUNNER_WORKDIR
value: '/_work'
- name: LABELS
value: moj-cloud-platform,hmpps-probation-integration-runner
- name: REPO_URL
value: https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests
- name: RUN_AS_ROOT
value: 'false'
- name: APP_ID
valueFrom:
secretKeyRef:
name: github-actions-runner-token
key: GITHUB_APP_ID
- name: APP_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: github-actions-runner-token
key: GITHUB_APP_PRIVATE_KEY
- name: ImageOS # Required for Ruby: https://github.com/ruby/setup-ruby#using-self-hosted-runners
value: ubuntu20