Implement authentication via Gitea
Some checks failed
/ checks (pull_request) Failing after 14s

This commit is contained in:
Bart van der Braak 2024-11-20 23:59:35 +01:00
parent 0f45b38432
commit edb56e96dc
22 changed files with 134 additions and 82 deletions

View file

@ -22,12 +22,12 @@ gitea_api_token = None
gitea_status_service = None
def setup_service(ENVIRONMENT: str):
def setup_service(environment: str):
import conf.worker
importlib.reload(conf.worker)
worker_config = conf.worker.get_config(ENVIRONMENT)
gitea_api_token = worker_config.gitea_api_token(ENVIRONMENT)
worker_config = conf.worker.get_config(environment)
gitea_api_token = worker_config.gitea_api_token(environment)
if gitea_api_token:
log.msg("Found Gitea API token, enabling status push")