forgejo-runner/artifactcache
Jason Song c817236aa4
Refactor environment variables to configuration and registration (#90)
Close #21.

Refactor environment variables to configuration file (config.yaml) and registration file (.runner).

The old environment variables are still supported, but warning logs will be printed.

Like:

```text
$ GITEA_DEBUG=true ./act_runner -c config.yaml daemon
INFO[0000] Starting runner daemon
WARN[0000] env GITEA_DEBUG has been ignored because config file is used

$ GITEA_DEBUG=true ./act_runner daemon
INFO[0000] Starting runner daemon
WARN[0000] env GITEA_DEBUG will be deprecated, please use config file instead
```

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/90
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-04-05 00:53:35 +02:00
..
handler.go Refactor environment variables to configuration and registration (#90) 2023-04-05 00:53:35 +02:00
model.go Support cache (#25) 2023-02-28 23:48:37 +01:00
README.md Support cache (#25) 2023-02-28 23:48:37 +01:00
storage.go Support cache (#25) 2023-02-28 23:48:37 +01:00
util.go Get outbound IP in multiple ways or disable cache server if failed to init (#74) 2023-04-05 00:53:35 +02:00