Skip to content

Commit

Permalink
Don't serialize the build field on stacks (#1087)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
  • Loading branch information
pchico83 committed Oct 8, 2020
1 parent 4c6a9ea commit b9bb635
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmd/stack/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ func saveStackFile(s *model.Stack) (string, error) {
return "", fmt.Errorf("failed to create dynamic stack manifest file: %s", err)
}

for name, svc := range s.Services {
svc.Build = nil
s.Services[name] = svc
}

marshalled, err := yaml.Marshal(s)
if err != nil {
return "", fmt.Errorf("failed to marshall dynamic stack manifest: %s", err)
Expand Down

0 comments on commit b9bb635

Please sign in to comment.