Feat Drone CI & dockerize 🐳 #132

Merged
KevinMidboe merged 15 commits from feat/drone-ci into master 2022-08-18 18:44:36 +00:00
Showing only changes of commit b56b1f6c0c - Show all commits

View File

@@ -30,13 +30,11 @@ class Config {
const field = new Field(this.fields[section][option]); const field = new Field(this.fields[section][option]);
if (field.value === "") {
const envField = const envField =
process.env[[section.toUpperCase(), option.toUpperCase()].join("_")]; process.env[[section.toUpperCase(), option.toUpperCase()].join("_")];
if (envField !== undefined && envField.length !== 0) { if (envField !== undefined && envField.length !== 0) {
return envField; return envField;
} }
}
if (field.value === undefined) { if (field.value === undefined) {
throw new Error(`${section} => ${option} is empty.`); throw new Error(`${section} => ${option} is empty.`);