fix: write versions on deploy/upgrade/rollback
See coop-cloud/organising#625
This commit is contained in:
@ -219,11 +219,10 @@ EXAMPLE:
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
if app.Recipe.Version != "" {
|
||||
err := app.WriteRecipeVersion(chosenDowngrade)
|
||||
if err != nil {
|
||||
log.Fatalf("writing new recipe version in env file: %s", err)
|
||||
}
|
||||
app.Recipe.Version = chosenDowngrade
|
||||
log.Debugf("choosing %s as version to save to env file", app.Recipe.Version)
|
||||
if err := app.WriteRecipeVersion(app.Recipe.Version); err != nil {
|
||||
log.Fatalf("writing new recipe version in env file: %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user