This commit is contained in:
parent
0f45b38432
commit
edb56e96dc
22 changed files with 134 additions and 82 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue