fix
This commit is contained in:
@@ -1,14 +1,8 @@
|
|||||||
const DOMAIN = config.domain;
|
const DOMAIN = config.domain;
|
||||||
fn pre_check() {
|
fn pre_check() {
|
||||||
if ! have_install(`${global::DOMAIN}-ci`, "gitea") {
|
assert(have_install(`${global::DOMAIN}-ci`, "gitea"), `No gitea installation in ${global::DOMAIN}-ci`);
|
||||||
throw `No gitea installation in ${global::DOMAIN}-ci`
|
assert(have_ingress(`${global::DOMAIN}-ci`, "gitea"), `No gitea ingress in ${global::DOMAIN}-ci`);
|
||||||
} else if ! have_ingress(`${global::DOMAIN}-ci`, "gitea") {
|
assert(have_secret(`${global::DOMAIN}-ci`, "gitea"), `No gitea secret in ${global::DOMAIN}-ci`);
|
||||||
throw `No gitea ingress in ${global::DOMAIN}-ci`
|
assert(have_secret(`${global::DOMAIN}-ci`, "gitea-admin-user"), `No gitea-admin-user secret in ${global::DOMAIN}-ci`);
|
||||||
} else if ! have_secret(`${global::DOMAIN}-ci`, "gitea") {
|
|
||||||
throw `No gitea secret in ${global::DOMAIN}-ci`
|
|
||||||
} else if ! have_secret(`${global::DOMAIN}-ci`, "gitea-admin-user") {
|
|
||||||
log_warn("gitea-admin-user");
|
|
||||||
throw `No gitea-admin-user secret in ${global::DOMAIN}-ci`
|
|
||||||
}
|
|
||||||
log_info("Ready to install");
|
log_info("Ready to install");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ options:
|
|||||||
- true
|
- true
|
||||||
type: boolean
|
type: boolean
|
||||||
domain:
|
domain:
|
||||||
default: your-company
|
default: media
|
||||||
examples:
|
examples:
|
||||||
- your-company
|
- media
|
||||||
type: string
|
type: string
|
||||||
domain_name:
|
domain_name:
|
||||||
default: your_company.com
|
default: your_company.com
|
||||||
|
|||||||
Reference in New Issue
Block a user