fix: make sure to clone recipe
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Closes coop-cloud/organising#193.
This commit is contained in:
parent
1cb45113db
commit
0140f96ca1
@ -41,6 +41,10 @@ func ValidateApp(c *cli.Context) config.App {
|
|||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := recipe.EnsureExists(app.Type); err != nil {
|
||||||
|
logrus.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
logrus.Debugf("validated '%s' as app argument", appName)
|
logrus.Debugf("validated '%s' as app argument", appName)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
@ -9,6 +9,7 @@ import (
|
|||||||
"coopcloud.tech/abra/cli/internal"
|
"coopcloud.tech/abra/cli/internal"
|
||||||
"coopcloud.tech/abra/pkg/config"
|
"coopcloud.tech/abra/pkg/config"
|
||||||
"coopcloud.tech/abra/pkg/recipe"
|
"coopcloud.tech/abra/pkg/recipe"
|
||||||
|
recipePkg "coopcloud.tech/abra/pkg/recipe"
|
||||||
"coopcloud.tech/tagcmp"
|
"coopcloud.tech/tagcmp"
|
||||||
"github.com/AlecAivazis/survey/v2"
|
"github.com/AlecAivazis/survey/v2"
|
||||||
"github.com/go-git/go-git/v5"
|
"github.com/go-git/go-git/v5"
|
||||||
@ -92,6 +93,11 @@ or a rollback of an app.
|
|||||||
imagesTmp := getImageVersions(recipe)
|
imagesTmp := getImageVersions(recipe)
|
||||||
mainApp := getMainApp(recipe)
|
mainApp := getMainApp(recipe)
|
||||||
mainAppVersion := imagesTmp[mainApp]
|
mainAppVersion := imagesTmp[mainApp]
|
||||||
|
|
||||||
|
if err := recipePkg.EnsureExists(recipe.Name); err != nil {
|
||||||
|
logrus.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
if mainAppVersion == "" {
|
if mainAppVersion == "" {
|
||||||
logrus.Fatal("main app version is empty?")
|
logrus.Fatal("main app version is empty?")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user