forked from buildkite/agent-stack-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecretref.yaml
32 lines (31 loc) · 889 Bytes
/
secretref.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
steps:
- label: ":git::console::superhero: checkout private git repo as root"
agents:
queue: "{{.queue}}"
plugins:
- kubernetes:
gitEnvFrom:
- secretRef:
name: integration-test-ssh-key
podSpec:
containers:
- image: alpine:latest
command:
- echo hello world
- label: ":git::console::student: checkout private git repo as user"
agents:
queue: "{{.queue}}"
plugins:
- kubernetes:
gitEnvFrom:
- secretRef:
name: integration-test-ssh-key
podSpec:
containers:
- image: alpine:latest
command:
- echo hello world
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1001