feat: pass domain to new app envs
continuous-integration/drone/push Build is passing Details

See coop-cloud/organising#304.
This commit is contained in:
decentral1se 2022-03-27 21:06:16 +02:00
parent 7a8c7cd50f
commit 338360096c
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 7 additions and 1 deletions

View File

@ -288,7 +288,13 @@ func TemplateAppEnvSample(recipeName, appName, server, domain string) error {
return err
}
if err := tpl.Execute(file, struct{ Name string }{recipeName}); err != nil {
type templateVars struct {
Name string
Domain string
}
tvars := templateVars{Name: recipeName, Domain: domain}
if err := tpl.Execute(file, tvars); err != nil {
return err
}