refactor: execute the predeploy script during the pre-release-builder plugin trigger

This fixes an issue where the post-release-builder trigger inadvertently modifies the image. We take advantage of the fact that env vars are available at the `pre-release-builder` phase to ensure any image modifications occur as appropriate.
This commit is contained in:
Jose Diaz-Gonzalez
2024-04-04 02:34:09 -04:00
parent 2937ffb880
commit 104a5b4a93
3 changed files with 12 additions and 5 deletions

View File

@@ -61,6 +61,11 @@ func main() {
appName := flag.Arg(1)
image := flag.Arg(2)
err = appjson.TriggerPostReleaseBuilder(builderType, appName, image)
case "pre-release-builder":
builderType := flag.Arg(0)
appName := flag.Arg(1)
image := flag.Arg(2)
err = appjson.TriggerPreReleaseBuilder(builderType, appName, image)
case "report":
appName := flag.Arg(0)
err = appjson.ReportSingleApp(appName, "", "")