mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 08:26:45 +02:00
17b8867b96
The goal here is to make consistent use of configuration environment variables prefixed `WOODPECKER_`. Where several variants existed, this PR aims to remove all but one option, leaving the most explicit. This PR only changes server and agent code, but not documentation, in order to keep the PR digestible. Once we have consensus that this is correct, I'll change docs accordingly. User (rather: admin) facing changes in this PR: - In general, support for all server and agent config environment variables (env vars) starting with `DRONE_` is removed. The according `WOODPECKER_*` variables must be used instead. - The env var `WOODPECKER_HOST` replaces `DRONE_HOST`, and `DRONE_SERVER_HOST`. - The env var `WOODPECKER_AGENT_SECRET` is used to configure the shared secret which agents use to authenticate against the server. It replaces `WOODPECKER_SECRET`, `DRONE_SECRET`, `WOODPECKER_PASSWORD`, `DRONE_PASSWORD`, and `DRONE_AGENT_SECRET`. - The env var `WOODPECKER_DATABASE_DRIVER` replaces `DRONE_DATABASE_DRIVER` and `DATABASE_DRIVER`. - The env var `WOODPECKER_DATABASE_DATASOURCE` replaces `DRONE_DATABASE_DATASOURCE` and `DATABASE_CONFIG`. |
||
---|---|---|
.. | ||
ddl | ||
sql | ||
builds_test.go | ||
builds.go | ||
config_test.go | ||
config.go | ||
files_test.go | ||
files.go | ||
init_cgo.go | ||
init.go | ||
logs_test.go | ||
logs.go | ||
perms_test.go | ||
perms.go | ||
procs_test.go | ||
procs.go | ||
registry_test.go | ||
registry.go | ||
repos_test.go | ||
repos.go | ||
secret_test.go | ||
secret.go | ||
sender_test.go | ||
sender.go | ||
store.go | ||
task_test.go | ||
task.go | ||
users_test.go | ||
users.go | ||
utils.go |