Skip to content

Commit

Permalink
support non-swarm deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
craftycram committed Mar 2, 2024
1 parent 8e8dc35 commit deb0ad6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,12 @@ app.post('/', async (req: Request, res: Response): Promise<void> => {
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(
Expand Down

0 comments on commit deb0ad6

Please sign in to comment.