Skip to content

Commit

Permalink
Update all source versions when updating the app
Browse files Browse the repository at this point in the history
Currently, when an app is updated, sources that existed in the app before are **not** updated automatically. This behavior is desired to avoid an app spec change that only changes, for example the scale of a component from picking up new code.

By setting the `UpdateAllSourceVersions` flag, the action now forces updates to **all** the sources of the app (either git based or image based) on the update.
  • Loading branch information
markusthoemmes committed Aug 9, 2024
1 parent ab17cdb commit 43513b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (d *deployer) deploy(ctx context.Context, spec *godo.AppSpec) (*godo.App, e
}
} else {
d.action.Infof("app %q already exists, updating...", spec.Name)
app, _, err = d.apps.Update(ctx, app.GetID(), &godo.AppUpdateRequest{Spec: spec})
app, _, err = d.apps.Update(ctx, app.GetID(), &godo.AppUpdateRequest{Spec: spec, UpdateAllSourceVersions: true})
if err != nil {
return nil, fmt.Errorf("failed to update app: %w", err)
}
Expand Down

0 comments on commit 43513b3

Please sign in to comment.