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_token = lookup({ 'name' => 'runner_token.vuln_management_repo', 'default_value' => undef })
|
||||||
$runner_labels = join([
|
$runner_labels = join([
|
||||||
"pkthon:docker://nikolaik/python3.12-nodejs23",
|
"python:docker://nikolaik/python3.12-nodejs23",
|
||||||
"ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04",
|
"ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04",
|
||||||
], ',')
|
], ',')
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/forgejo-runner/data:/data
|
- /opt/forgejo-runner/data:/data
|
||||||
- /opt/forgejo-runner/docker_certs:/certs
|
- /opt/forgejo-runner/docker_certs:/certs
|
||||||
command:
|
command: >-
|
||||||
- 'forgejo-runner'
|
if ! grep '--mount type=bind,source=/certs/client,target=/certs/client,readonly' config.yml > /dev/null; then
|
||||||
- '--config'
|
sed -i '\|options:| a \ \ \ \ --mount type=bind,source=/certs/client,target=/certs/client,readonly' config.yml
|
||||||
- 'config.yml'
|
fi
|
||||||
- 'daemon'
|
forgejo-runner --config config.yml daemon
|
||||||
|
|
Loading…
Add table
Reference in a new issue