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:
1 parent
08a136f73f
commit
ad5537c086
7 files changed
+26
-23
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user