Update
ci/woodpecker/push/woodpecker Pipeline was successful Podrobnosti

This commit is contained in:
tree 2022-10-21 21:45:49 +02:00
rodič e0cf07426e
revize 26c4109cb1
1 změnil soubory, kde provedl 8 přidání a 0 odebrání

Zobrazit soubor

@ -76,6 +76,14 @@ export default async function build (src = SOURCE_FILE) {
const spec = yaml.load(fs.readFileSync(src))
for (const item of spec.servers) {
const resp = await fetch(`https://${item.host}/sysinfo`)
const json = await resp.json()
item.uptime = json.uptime
item.system = json.system
}
for (const item of spec.services) {
item.url = item.host ? `https://${item.host}` : item.url