서비스 자체 태그도 넘겨줌
This commit is contained in:
@ -43,9 +43,12 @@ func (h *houstonHandler) GetDeploySources(w http.ResponseWriter, r *http.Request
|
|||||||
}
|
}
|
||||||
|
|
||||||
getVersions := func(name string) []string {
|
getVersions := func(name string) []string {
|
||||||
var out []string
|
|
||||||
vers, _ := os.ReadDir(path.Join(h.deployPath, name))
|
vers, _ := os.ReadDir(path.Join(h.deployPath, name))
|
||||||
mytags, _ := os.ReadFile(path.Join(h.deployPath, name, "@tags"))
|
mytags, _ := os.ReadFile(path.Join(h.deployPath, name, "@tags"))
|
||||||
|
|
||||||
|
out := []string{
|
||||||
|
string(mytags),
|
||||||
|
}
|
||||||
for _, fd := range vers {
|
for _, fd := range vers {
|
||||||
if fd.IsDir() {
|
if fd.IsDir() {
|
||||||
ver := fd.Name()
|
ver := fd.Name()
|
||||||
|
|||||||
Reference in New Issue
Block a user