0
0
forked from toolshed/abra

feat: lint before deploy/upgrade/rollback

See coop-cloud/organising#254.
This commit is contained in:
2021-12-25 23:35:45 +01:00
parent a84a5bc320
commit 8735a8f0ea
4 changed files with 51 additions and 0 deletions

View File

@ -22,6 +22,15 @@ func DeployAction(c *cli.Context) error {
app := ValidateApp(c)
stackName := app.StackName()
r, err := recipe.Get(app.Type)
if err != nil {
logrus.Fatal(err)
}
if err := recipe.LintForErrors(r); err != nil {
logrus.Fatal(err)
}
cl, err := client.New(app.Server)
if err != nil {
logrus.Fatal(err)