Compare commits
2 commits
51638c66e6
...
1373a8aede
Author | SHA1 | Date | |
---|---|---|---|
1373a8aede | |||
d14291e50b |
2 changed files with 2 additions and 8 deletions
|
@ -5,7 +5,7 @@ pipeline:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build:ssr
|
- npm run build:ssr
|
||||||
docker:
|
docker:
|
||||||
image: techknowlogick/drone-docker
|
image: plugins/docker
|
||||||
secrets:
|
secrets:
|
||||||
- DOCKER_USERNAME
|
- DOCKER_USERNAME
|
||||||
- DOCKER_PASSWORD
|
- DOCKER_PASSWORD
|
||||||
|
@ -17,7 +17,7 @@ pipeline:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
cr:
|
cr:
|
||||||
image: techknowlogick/drone-docker
|
image: plugins/docker
|
||||||
secrets:
|
secrets:
|
||||||
- source: CR_USERNAME
|
- source: CR_USERNAME
|
||||||
target: DOCKER_USERNAME
|
target: DOCKER_USERNAME
|
||||||
|
|
|
@ -79,12 +79,6 @@ api.post('/update/health', (req, res) => {
|
||||||
return res.status(401).send('invalid token');
|
return res.status(401).send('invalid token');
|
||||||
}
|
}
|
||||||
const serviceId = req.query.service as string;
|
const serviceId = req.query.service as string;
|
||||||
if (!config.groups
|
|
||||||
.map(g => g.services).reduce((x, y) => x.concat(y), [])
|
|
||||||
.map(s => s.id).includes(serviceId)) {
|
|
||||||
// TODO remove old caches
|
|
||||||
return res.send('OK');
|
|
||||||
}
|
|
||||||
let services: { id: string, state: string }[] = [];
|
let services: { id: string, state: string }[] = [];
|
||||||
if (serviceId) {
|
if (serviceId) {
|
||||||
services = [{id: serviceId, state: JSONPath({path: serviceStatePaths[serviceId], json: req.body, wrap: false})}];
|
services = [{id: serviceId, state: JSONPath({path: serviceStatePaths[serviceId], json: req.body, wrap: false})}];
|
||||||
|
|
Reference in a new issue