This commit is contained in:
2024-06-18 16:52:21 +02:00
parent 49426c114c
commit 5bb388e51a
3 changed files with 9 additions and 3 deletions

View File

@@ -6,6 +6,9 @@ fn check_domain() {
fn pre_check() {
check_domain();
}
fn have_taiga() {
have_namespace(`${global::DOMAIN}-ci`) && have_install(`${global::DOMAIN}-ci`, "taiga") && have_service(`${global::DOMAIN}-ci`, "taiga-taiga") && have_secret(`${global::DOMAIN}-ci`, "taiga-taiga")
}
fn conditions() {
let org = global::NAME;
org.replace("org-","");
@@ -22,6 +25,7 @@ fn conditions() {
log_info(`Found ${repos.len} repos`);
}
json_encode(#{
repos: repos
repos: repos,
have_taiga: have_taiga()
})
}