fix: improve app check

See coop-cloud/organising#446
This commit is contained in:
2023-10-06 00:39:02 +02:00
parent 6fc4573a71
commit b57edb440a
5 changed files with 157 additions and 25 deletions

View File

@ -200,6 +200,17 @@ recipes.
config.SetChaosVersionLabel(compose, stackName, version)
config.SetUpdateLabel(compose, stackName, app.Env)
envVars, err := config.CheckEnv(app)
if err != nil {
logrus.Fatal(err)
}
for _, envVar := range envVars {
if !envVar.Present {
logrus.Warnf("env var %s missing from %s.env, present in recipe .env.sample", envVar.Name, app.Domain)
}
}
if err := internal.DeployOverview(app, version, "continue with deployment?"); err != nil {
logrus.Fatal(err)
}