refactor: directly trigger pre-deploy hook from post-release-builder script

This removes the extra indirection in the deploy process for triggering the hooks.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-04-04 02:27:43 -04:00
1 parent 08a136f73f
commit ad5537c086
7 files changed
+26 -23

No files matched your search

+2 -2
View File
@@ -257,8 +257,8 @@ func TriggerPostStop(appName string) error {
})
}
// TriggerPreDeploy ensures an app has an up to date scale parameters
func TriggerPreDeploy(appName string, imageTag string) error {
// TriggerPostReleaseBuilder ensures an app has an up to date scale parameters
func TriggerPostReleaseBuilder(builderType string, appName string, image string) error {
if err := updateScale(appName, false, FormationSlice{}); err != nil {
common.LogDebug(fmt.Sprintf("Error generating scale file: %s", err.Error()))
return err