Fix name generation with "." and "/"

This commit is contained in:
2022-02-02 10:15:14 +01:00
parent 4320519a2a
commit 8d4ea90a9a

View File

@@ -73,7 +73,8 @@ func parseService(name string, s *compose.Service, ret chan interface{}) {
for _, envfile := range s.EnvFiles { for _, envfile := range s.EnvFiles {
f := strings.ReplaceAll(envfile, "_", "-") f := strings.ReplaceAll(envfile, "_", "-")
f = strings.ReplaceAll(f, ".env", "") f = strings.ReplaceAll(f, ".env", "")
f = strings.ReplaceAll(f, ".", "-") f = strings.ReplaceAll(f, ".", "")
f = strings.ReplaceAll(f, "/", "")
cf := f + "-" + name cf := f + "-" + name
isSecret := false isSecret := false
for _, s := range secretsFiles { for _, s := range secretsFiles {