Merge branch 'master' into kd-live

This commit is contained in:
2023-07-03 14:08:46 +09:00

View File

@ -49,6 +49,9 @@ func (h *houstonHandler) GetDeploySources(w http.ResponseWriter, r *http.Request
if fd.IsDir() {
ver := fd.Name()
files, _ := os.ReadDir(path.Join(h.deployPath, name, ver))
vertags, _ := os.ReadFile(path.Join(h.deployPath, name, ver, "@tags"))
ver = ver + string(vertags)
if len(files) > 0 {
for _, file := range files {
if strings.HasPrefix(file.Name(), "@") {
@ -60,8 +63,7 @@ func (h *houstonHandler) GetDeploySources(w http.ResponseWriter, r *http.Request
break
}
}
vertags, _ := os.ReadFile(path.Join(h.deployPath, name, ver, "@tags"))
out = append(out, ver+string(vertags))
out = append(out, ver)
}
}
mytags, _ := os.ReadFile(path.Join(h.deployPath, name, "@tags"))