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

This commit is contained in:
tree 2022-10-21 18:12:09 +02:00
rodič 458108819b
revize b95633ceb1
2 změnil soubory, kde provedl 54 přidání a 2 odebrání

Zobrazit soubor

@ -44,7 +44,9 @@ const strategies = {
},
async github (conf, all) {
const resp = await ghRequest('repos/@@/releases/latest'.replace(/@@/, all.repo), conf, all)
return jsonata('$match(tag_name,/^v(ersion\/|)(.+)/)[0].groups[1]').evaluate(resp)
const prefix = typeof(conf.prefix) === 'string' ? conf.prefix : 'v'
const prop = conf.prop || 'tag_name'
return jsonata(`$match(${prop},/^${prefix}(.+)/)[0].groups[0]`).evaluate(resp)
},
async github_tags (conf, all) {
const resp = await ghRequest('repos/@@/tags'.replace(/@@/, all.repo), conf, all)
@ -59,7 +61,8 @@ const strategies = {
const req = await fetch(conf.url)
const resp = await req.text()
return resp.match(conf.query)[1]
}
},
async none () {}
}
async function getVersions (config, all) {

Zobrazit soubor

@ -143,6 +143,7 @@ services:
query: 'version_current'
to:
strategy: github
prefix: 'version\/'
- name: Jitsi
host: meet.gwei.cz
@ -156,6 +157,8 @@ services:
url: https://meet.gwei.cz/
to:
strategy: github
prefix: ''
prop: name
- name: Kubo (IPFS)
host: ipfs.gwei.cz
@ -253,3 +256,49 @@ services:
url: http://analytics.gwei.cz/
to:
strategy: github_tags
- name: Uptime Kuma
host: status.gwei.cz
repo: louislam/uptime-kuma
monitor: 25
version_conf:
from:
strategy: html
url: https://status.gwei.cz/
to:
strategy: github
prefix: ''
- name: Bitcoin Core (BTC)
repo: bitcoin/bitcoin
monitor: 32
version_conf:
from:
strategy: html
url: https://bitnodes.io/nodes/94.177.8.76-8333/
query: "\/Satoshi:([^\/]+)\/"
to:
strategy: github
- name: BTCPayServer
host: btcpay.utxo.cz
repo: btcpayserver/btcpayserver
monitor: 15
version_conf:
from:
url: https://btcpay.utxo.cz/api/v1/server/info
auth:
type: token
env: GWEICZ_BTCPAY_TOKEN
query: version
to:
strategy: github
- name: Core Lightning (LN)
repo: ElementsProject/lightning
monitor: 28
version_conf:
from:
strategy: none
to:
strategy: github