fix: expose new version

See #713
This commit is contained in:
2025-11-02 11:42:01 +01:00
parent e5a653c002
commit faedef3fa4
4 changed files with 20 additions and 4 deletions

View File

@ -152,7 +152,6 @@ checkout as-is. Recipe commit hashes are also supported as values for
log.Fatal(err)
}
appPkg.ExposeAllEnv(stackName, compose, app.Env)
appPkg.SetRecipeLabel(compose, stackName, app.Recipe.Name)
appPkg.SetChaosLabel(compose, stackName, internal.Chaos)
if internal.Chaos {
@ -171,6 +170,9 @@ checkout as-is. Recipe commit hashes are also supported as values for
}
appPkg.SetVersionLabel(compose, stackName, versionLabel)
newRecipeWithDeployVersion := fmt.Sprintf("%s:%s", app.Recipe.Name, toDeployVersion)
appPkg.ExposeAllEnv(stackName, compose, app.Env, newRecipeWithDeployVersion)
envVars, err := appPkg.CheckEnv(app)
if err != nil {
log.Fatal(err)

View File

@ -2,6 +2,7 @@ package app
import (
"errors"
"fmt"
"strings"
appPkg "coopcloud.tech/abra/pkg/app"
@ -177,7 +178,9 @@ beforehand. See "abra app backup" for more.`),
log.Fatal(err)
}
appPkg.ExposeAllEnv(stackName, compose, app.Env)
newRecipeWithDowngradeVersion := fmt.Sprintf("%s:%s", app.Recipe.Name, chosenDowngrade)
appPkg.ExposeAllEnv(stackName, compose, app.Env, newRecipeWithDowngradeVersion)
appPkg.SetRecipeLabel(compose, stackName, app.Recipe.Name)
appPkg.SetChaosLabel(compose, stackName, internal.Chaos)
if internal.Chaos {

View File

@ -190,7 +190,9 @@ beforehand. See "abra app backup" for more.`),
log.Fatal(err)
}
appPkg.ExposeAllEnv(stackName, compose, app.Env)
newRecipeWithUpgradeVersion := fmt.Sprintf("%s:%s", app.Recipe.Name, chosenUpgrade)
appPkg.ExposeAllEnv(stackName, compose, app.Env, newRecipeWithUpgradeVersion)
appPkg.SetRecipeLabel(compose, stackName, app.Recipe.Name)
appPkg.SetChaosLabel(compose, stackName, internal.Chaos)
if internal.Chaos {