forked from SUNET/soc-ops
fix runner command shell line ends
This commit is contained in:
parent
c7c044fb98
commit
43d367e1cb
1 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ services:
|
|||
command: >-
|
||||
bash -ec '
|
||||
while : ; do
|
||||
if [ -f .runner ]; then echo "runner already registered, exiting"; exit; fi
|
||||
if [ -f .runner ]; then echo "runner already registered, exiting"; exit; fi ;
|
||||
forgejo-runner register --no-interactive --name <%= @networking['fqdn'] %> --instance https://platform.sunet.se --token <%= @runner_token %> --labels <%= @runner_labels %> && break ;
|
||||
sleep 1 ;
|
||||
done ;
|
||||
|
@ -55,7 +55,7 @@ services:
|
|||
command: >-
|
||||
bash -ec '
|
||||
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
|
||||
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