feat: pass domain to new app envs
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
See coop-cloud/organising#304.
This commit is contained in:
parent
7a8c7cd50f
commit
338360096c
|
@ -288,7 +288,13 @@ func TemplateAppEnvSample(recipeName, appName, server, domain string) error {
|
||||||
return err
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue