Skip to content

Commit 944e5e6

Browse files
gloursndeloof
authored andcommitted
do not throw an error on build with provider services
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
1 parent 23fc76a commit 944e5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ type BuildOptions struct {
165165
func (o BuildOptions) Apply(project *types.Project) error {
166166
platform := project.Environment["DOCKER_DEFAULT_PLATFORM"]
167167
for name, service := range project.Services {
168-
if service.Image == "" && service.Build == nil {
168+
if service.Provider == nil && service.Image == "" && service.Build == nil {
169169
return fmt.Errorf("invalid service %q. Must specify either image or build", name)
170170
}
171171

0 commit comments

Comments
 (0)