소스 검색

do not throw an error on build with provider services

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 6 달 전
부모
커밋
944e5e67a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pkg/api/api.go

+ 1 - 1
pkg/api/api.go

@@ -165,7 +165,7 @@ type BuildOptions struct {
 func (o BuildOptions) Apply(project *types.Project) error {
 	platform := project.Environment["DOCKER_DEFAULT_PLATFORM"]
 	for name, service := range project.Services {
-		if service.Image == "" && service.Build == nil {
+		if service.Provider == nil && service.Image == "" && service.Build == nil {
 			return fmt.Errorf("invalid service %q. Must specify either image or build", name)
 		}