feat: auto strip domain names to avoid runtime limits

This commit is contained in:
2022-01-27 09:56:22 +01:00
committed by Gitea
parent e670844b56
commit a23124aede
2 changed files with 6 additions and 3 deletions

View File

@ -52,6 +52,12 @@ func (a App) StackName() string {
}
stackName := SanitiseAppName(a.Name)
if len(stackName) > 45 {
logrus.Debugf("trimming %s to %s to avoid runtime limits", stackName, stackName[:45])
stackName = stackName[:45]
}
a.Env["STACK_NAME"] = stackName
return stackName