diff --git a/share/gitea-tekton-org/index.rhai b/share/gitea-tekton-org/index.rhai index 66908de..39d1b93 100644 --- a/share/gitea-tekton-org/index.rhai +++ b/share/gitea-tekton-org/index.rhai @@ -3,6 +3,7 @@ const DEST=dest; const duplicates=["auto_ci_detector.py","functions.sh"]; const DOMAIN = config.domain; const NAME = instance; +const ORG = config.organization; fn duplicate_files() { for file in global::duplicates { shell(`cp ${global::SRC}/${file} ${global::DEST}/${file}`); @@ -19,8 +20,7 @@ fn have_taiga() { } fn gitea_repos() { let repos = []; - let org = global::NAME; - org.replace("org-",""); + let org = global::ORG; if (have_gitea() && have_sonar()) { let gitea = get_secret(`${global::DOMAIN}-ci`, "gitea-admin-user"); let username = base64_decode(gitea.data.username);