Make mounting auth.json optional
It makes sense in some environments and deployments, but there are use cases that don't need it, so runner shouldn't fail in those cases.
This commit is contained in:
parent
ff5202f0cd
commit
0249fcc192
1 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,9 @@ cp /config/.runner /builder/.runner
|
|||
chmod 600 /builder/.runner
|
||||
|
||||
mkdir -p /builder/.config/containers
|
||||
cp /config/auth.json /builder/.config/containers/auth.json
|
||||
chmod 600 /builder/.config/containers/auth.json
|
||||
|
||||
{
|
||||
cp /config/auth.json /builder/.config/containers/auth.json && chmod 600 /builder/.config/containers/auth.json
|
||||
} || true
|
||||
|
||||
exec setpriv --ambient-caps "-all" /usr/local/bin/forgejo-runner one-job --config config.yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue