Skip to content

Commit

Permalink
fix(manager/docker-compose): Allow strings or objects for service bui…
Browse files Browse the repository at this point in the history
…ld (#27594)

Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Feb 27, 2024
1 parent 81a7762 commit 5585818
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Expand Up @@ -81,3 +81,6 @@ debugapp:
build:
context: .
dockerfile: Dockerfile.local

build-context:
build: ./debugapp
11 changes: 7 additions & 4 deletions lib/modules/manager/docker-compose/schema.ts
Expand Up @@ -3,10 +3,13 @@ import { z } from 'zod';
const DockerComposeService = z.object({
image: z.string().optional(),
build: z
.object({
context: z.string().optional(),
dockerfile: z.string().optional(),
})
.union([
z.string(),
z.object({
context: z.string().optional(),
dockerfile: z.string().optional(),
}),
])
.optional(),
});

Expand Down

0 comments on commit 5585818

Please sign in to comment.