Compare commits
No commits in common. "1373a8aede205b79199881c51392611accd6275d" and "51638c66e63cacadbf0561c2d38578fd342a0fb5" have entirely different histories.
1373a8aede
...
51638c66e6
2 changed files with 8 additions and 2 deletions
|
@ -5,7 +5,7 @@ pipeline:
|
|||
- npm install
|
||||
- npm run build:ssr
|
||||
docker:
|
||||
image: plugins/docker
|
||||
image: techknowlogick/drone-docker
|
||||
secrets:
|
||||
- DOCKER_USERNAME
|
||||
- DOCKER_PASSWORD
|
||||
|
@ -17,7 +17,7 @@ pipeline:
|
|||
event:
|
||||
- push
|
||||
cr:
|
||||
image: plugins/docker
|
||||
image: techknowlogick/drone-docker
|
||||
secrets:
|
||||
- source: CR_USERNAME
|
||||
target: DOCKER_USERNAME
|
||||
|
|
|
@ -79,6 +79,12 @@ api.post('/update/health', (req, res) => {
|
|||
return res.status(401).send('invalid token');
|
||||
}
|
||||
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 }[] = [];
|
||||
if (serviceId) {
|
||||
services = [{id: serviceId, state: JSONPath({path: serviceStatePaths[serviceId], json: req.body, wrap: false})}];
|
||||
|
|
Reference in a new issue