From deb0ad660c458e2dbfb40066907e234f411716a6 Mon Sep 17 00:00:00 2001 From: Marc Rufeis Date: Sat, 2 Mar 2024 03:39:20 +0100 Subject: [PATCH] support non-swarm deployments --- package.json | 2 +- src/index.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d487d19..2c7eaa8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blaze", - "version": "2.0.7", + "version": "2.1.0", "description": "blazing fast ci/cd. small rest api service to receive ghcr event hooks to update services running in a dockerized portainer instance", "main": "index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index fd2ac6e..36d4f6e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -153,9 +153,12 @@ app.post('/', async (req: Request, res: Response): Promise => { parsedStackFile.services, ) as any[]) { if ( - service.deploy?.labels?.find((label: string): boolean => + (service.deploy?.labels?.find((label: string): boolean => label.startsWith('blaze.update'), - ) && + ) || + service.labels?.find((label: string): boolean => + label.startsWith('blaze.update'), + )) && service.image === reqPackageUrl ) { console.log(