Added environment variable for run.sh to specify runner state file. #377
Reference in New Issue
Block a user
No description provided.
Delete Branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added environment variable
RUNNER_STATE_FILE
to let users specifywhere
run.sh
looks for the runner JSON file. Defaults to.runner
to preserve the original behavior.
Addresses issue #368. It's not my preferred solution but it's the least invasive one I can think of.
I'm happy to make any changes you want.
I didn't see an appropriate place to reference the change in the documentation. I will add documentation wherever you think is appropriate.
To test this I did the following:
make docker
command and pushed it to my private registry.config.yml
(/data/runner.json
in this case).Here is the relevant config. It's stored as a template so I've left the things that would normally be redacted as they are in the template.
runner_data
is a glusterfs subvolumeThanks for creating this gitea specific fork. Apart from the issue this pull request addresses it works so well I don't have to think about it once it's set up.
Thanks for the PR!