Skip to content
Snippets Groups Projects
Unverified Commit 55858183 authored by Kyle Harding's avatar Kyle Harding Committed by GitHub
Browse files

fix(manager/docker-compose): Allow strings or objects for service build (#27594)


Signed-off-by: default avatarKyle Harding <kyle@balena.io>
parent 81a7762d
No related branches found
No related tags found
No related merge requests found
......@@ -81,3 +81,6 @@ debugapp:
build:
context: .
dockerfile: Dockerfile.local
build-context:
build: ./debugapp
......@@ -3,10 +3,13 @@ import { z } from 'zod';
const DockerComposeService = z.object({
image: z.string().optional(),
build: z
.object({
.union([
z.string(),
z.object({
context: z.string().optional(),
dockerfile: z.string().optional(),
})
}),
])
.optional(),
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment