버전에 태그를 붙임
This commit is contained in:
@ -49,6 +49,9 @@ func (h *houstonHandler) GetDeploySources(w http.ResponseWriter, r *http.Request
|
|||||||
if fd.IsDir() {
|
if fd.IsDir() {
|
||||||
ver := fd.Name()
|
ver := fd.Name()
|
||||||
files, _ := os.ReadDir(path.Join(h.deployPath, name, ver))
|
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 {
|
if len(files) > 0 {
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
if strings.HasPrefix(file.Name(), "@") {
|
if strings.HasPrefix(file.Name(), "@") {
|
||||||
@ -60,8 +63,7 @@ func (h *houstonHandler) GetDeploySources(w http.ResponseWriter, r *http.Request
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
vertags, _ := os.ReadFile(path.Join(h.deployPath, name, ver, "@tags"))
|
out = append(out, ver)
|
||||||
out = append(out, ver+string(vertags))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mytags, _ := os.ReadFile(path.Join(h.deployPath, name, "@tags"))
|
mytags, _ := os.ReadFile(path.Join(h.deployPath, name, "@tags"))
|
||||||
|
|||||||
Reference in New Issue
Block a user