Skip to content

Commit

Permalink
Merge pull request #3838 from uselagoon/fix-environment-services-cont…
Browse files Browse the repository at this point in the history
…ainers

fix: actually set containers for services
  • Loading branch information
tobybellwood authored Nov 4, 2024
2 parents b1314fe + 8087645 commit ca99b8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/actions-handler/handler/controller_builds.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ func (m *Messenger) handleBuild(ctx context.Context, messageQueue *mq.MessageQue
}
// then update all the existing services
for _, mService := range message.Meta.EnvironmentServices {
var containers []schema.ServiceContainerInput
containers := []schema.ServiceContainerInput{}
for _, sCon := range mService.Containers {
containers = append(containers, schema.ServiceContainerInput(sCon))
}
s2add := schema.AddEnvironmentServiceInput{EnvironmentID: environmentID, Name: mService.Name, Type: mService.Type, Containers: containers}
// add or update it
setServices, err := lagoon.AddOrUpdateEnvironmentService(ctx, s2add, l)
Expand Down

0 comments on commit ca99b8b

Please sign in to comment.