File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,19 @@ spec:
25
25
- name : docker-certs
26
26
mountPath : /certs/server
27
27
- name : runner
28
- image : ghcr.io/nopp/actions-runner-groups-k8s:0.0.13
28
+ image : ghcr.io/nopp/actions-runner-groups-k8s:0.0.14
29
29
imagePullPolicy : Always
30
30
lifecycle :
31
31
preStop :
32
32
exec :
33
33
command :
34
- - " sh "
34
+ - " bash "
35
35
- " -c"
36
- - >
37
- cd /opt/
38
- ./removeRunner.sh
36
+ - |
37
+ export RUNNER_TOKEN=$(curl -s -X POST https://api.github.com/orgs/${ORGANIZATION_NAME}/actions/runners/registration-token -H "accept: application/vnd.github.everest-preview+json" -H "authorization: token ${GITHUB_PAT}" | jq -r '.token')
38
+ # Remove the runner
39
+ cd /opt
40
+ sudo -E -u sre ./config.sh remove --token ${RUNNER_TOKEN}
39
41
volumeMounts :
40
42
- name : docker-certs
41
43
mountPath : /home/sre/.docker
You can’t perform that action at this time.
0 commit comments