fix: load STACK_NAME if not present
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-10-12 09:03:48 +02:00
parent a8683dc38a
commit 84489495dc
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ func (a App) StackName() string {
if _, exists := a.Env["STACK_NAME"]; exists {
return a.Env["STACK_NAME"]
}
return SanitiseAppName(a.Name)
stackName := SanitiseAppName(a.Name)
a.Env["STACK_NAME"] = stackName
return stackName
}
// SORTING TYPES