버전에 태그를 붙임
This commit is contained in:
@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user