forked from SUNET/soc-ops
attempt to fix runner docker config
This commit is contained in:
parent
fd509c821c
commit
513e770b27
2 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ class soc::runner(
|
|||
{
|
||||
$runner_token = lookup({ 'name' => 'runner_token.vuln_management_repo', 'default_value' => undef })
|
||||
$runner_labels = join([
|
||||
"pkthon:docker://nikolaik/python3.12-nodejs23",
|
||||
"python:docker://nikolaik/python3.12-nodejs23",
|
||||
"ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04",
|
||||
], ',')
|
||||
|
||||
|
|
|
@ -52,8 +52,8 @@ services:
|
|||
volumes:
|
||||
- /opt/forgejo-runner/data:/data
|
||||
- /opt/forgejo-runner/docker_certs:/certs
|
||||
command:
|
||||
- 'forgejo-runner'
|
||||
- '--config'
|
||||
- 'config.yml'
|
||||
- 'daemon'
|
||||
command: >-
|
||||
if ! grep '--mount type=bind,source=/certs/client,target=/certs/client,readonly' config.yml > /dev/null; then
|
||||
sed -i '\|options:| a \ \ \ \ --mount type=bind,source=/certs/client,target=/certs/client,readonly' config.yml
|
||||
fi
|
||||
forgejo-runner --config config.yml daemon
|
||||
|
|
Loading…
Add table
Reference in a new issue