Change environment variable setup
All checks were successful
/ checks (pull_request) Successful in 15s
All checks were successful
/ checks (pull_request) Successful in 15s
This commit is contained in:
parent
d6bce1b39d
commit
77ae214d24
23 changed files with 113 additions and 122 deletions
|
@ -22,12 +22,12 @@ gitea_api_token = None
|
|||
gitea_status_service = None
|
||||
|
||||
|
||||
def setup_service(devops_env_id: str):
|
||||
def setup_service(ENVIRONMENT: str):
|
||||
import conf.worker
|
||||
|
||||
importlib.reload(conf.worker)
|
||||
worker_config = conf.worker.get_config(devops_env_id)
|
||||
gitea_api_token = worker_config.gitea_api_token(devops_env_id)
|
||||
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