Skip to content

Commit

Permalink
Merge branch 'master' into refactor-dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ponkio-o authored Nov 30, 2024
2 parents a532718 + 87a470d commit d154f2d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkg/app/piped/planpreview/ecsdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"io"

"github.com/aws/aws-sdk-go-v2/service/ecs/types"
"github.com/pipe-cd/pipecd/pkg/app/piped/deploysource"
provider "github.com/pipe-cd/pipecd/pkg/app/piped/platformprovider/ecs"
"github.com/pipe-cd/pipecd/pkg/diff"
Expand Down Expand Up @@ -118,9 +119,13 @@ func (b *builder) loadECSManifests(ctx context.Context, app model.Application, d
if err != nil {
return provider.ECSManifests{}, err
}
serviceDef, err := provider.LoadServiceDefinition(ds.AppDir, appCfg.Input.ServiceDefinitionFile)
if err != nil {
return provider.ECSManifests{}, err

serviceDef := types.Service{}
if !appCfg.Input.IsStandaloneTask() {
serviceDef, err = provider.LoadServiceDefinition(ds.AppDir, appCfg.Input.ServiceDefinitionFile)
if err != nil {
return provider.ECSManifests{}, err
}
}

manifests = provider.ECSManifests{
Expand Down

0 comments on commit d154f2d

Please sign in to comment.