ops(sched-pipelines): локальный стенд sched + ym/ozon воркеры + browser/ntfy/alert-bridge; ТЗ разосланы
This commit is contained in:
53
host-stacks/local/sched-pipelines/tasks.json
Normal file
53
host-stacks/local/sched-pipelines/tasks.json
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"tasks": [
|
||||
{
|
||||
"name": "ozon-seller-pipeline",
|
||||
"runner": "http",
|
||||
"schedules": [{ "cron": "0 2 * * *" }],
|
||||
"config": {
|
||||
"url": "http://ozon-seller-builder:8080/run",
|
||||
"method": "POST",
|
||||
"envelope": true,
|
||||
"auth": { "apiKey": "__SCHED_API_KEY__" },
|
||||
"data": {
|
||||
"stages": ["fetch", "hash", "patch", "diff", "classify", "generate", "fix", "build", "postman", "state"]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "yandex-market-pipeline",
|
||||
"runner": "http",
|
||||
"schedules": [{ "cron": "30 2 * * *" }],
|
||||
"config": {
|
||||
"url": "http://ym-client-builder:8080/run",
|
||||
"method": "POST",
|
||||
"envelope": true,
|
||||
"auth": { "apiKey": "__SCHED_API_KEY__" },
|
||||
"data": {
|
||||
"stages": ["fetch", "detect", "diff", "classify", "patch", "generate", "fix", "build", "test", "postmanGenerate", "postman"],
|
||||
"repo": "https://github.com/yandex-market/yandex-market-partner-api",
|
||||
"branch": "main",
|
||||
"workDir": "data/clone",
|
||||
"specDir": "data/openapi/snapshots",
|
||||
"snapshotsDir": "data/openapi/snapshots",
|
||||
"statePath": "data/state.json",
|
||||
"outputDir": "data/output/typescript",
|
||||
"testsDir": "tests/client",
|
||||
"notify": {
|
||||
"ntfy": { "url": "http://ntfy", "topic": "ym-client-builder" },
|
||||
"email": { "to": "vitya.kuznetsov@gmail.com", "on": ["published", "report", "failed"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"alerts": {
|
||||
"on": ["failed"],
|
||||
"onMissed": true,
|
||||
"webhook": {
|
||||
"url": "http://alert-bridge:9090/webhook",
|
||||
"secret": "__WEBHOOK_SECRET__",
|
||||
"timeoutMs": 10000
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user