Post-deploy abra.sh hooks (!292)

This solves coop-cloud/organising#235

Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#292
This commit is contained in:
2023-04-14 14:12:31 +00:00
parent 5e508538f3
commit 18615eaaef
6 changed files with 183 additions and 97 deletions

View File

@ -205,6 +205,14 @@ recipes.
logrus.Fatal(err)
}
postDeployCmds, ok := app.Env["POST_UPGRADE_CMDS"]
if ok && !internal.DontWaitConverge {
logrus.Debugf("run the following post-deploy commands: %s", postDeployCmds)
if err := internal.PostCmds(cl, app, postDeployCmds); err != nil {
logrus.Fatalf("attempting to run post deploy commands, saw: %s", err)
}
}
return nil
},
BashComplete: autocomplete.AppNameComplete,