Skip to content

Commit

Permalink
Update deploy-lab.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nopp committed Jan 10, 2024
1 parent 72ad9e8 commit c86b18d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions k8s/deploy-lab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@ spec:
- name: docker-certs
mountPath: /certs/server
- name: runner
image: ghcr.io/nopp/actions-runner-groups-k8s:0.0.13
image: ghcr.io/nopp/actions-runner-groups-k8s:0.0.14
imagePullPolicy: Always
lifecycle:
preStop:
exec:
command:
- "sh"
- "bash"
- "-c"
- >
cd /opt/
./removeRunner.sh
- |
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')
# Remove the runner
cd /opt
sudo -E -u sre ./config.sh remove --token ${RUNNER_TOKEN}
volumeMounts:
- name: docker-certs
mountPath: /home/sre/.docker
Expand Down

0 comments on commit c86b18d

Please sign in to comment.