[Agent][GO] - fix docker deploy version
This commit is contained in:
@@ -200,13 +200,27 @@ func TestGzipFileNameToImageFullName(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestImageGzipFileNameToImageFullName_1(t *testing.T) {
|
||||
gzipFilePrefix := "/root/octopus_image/middle/"
|
||||
filepath.WalkDir(gzipFilePrefix, func(path string, d os.DirEntry, err error) error {
|
||||
//fmt.Println(path)
|
||||
name := d.Name()
|
||||
if strings.HasSuffix(name, ".tar.gz") {
|
||||
fullName := GzipFileNameToImageFullName(name)
|
||||
fmt.Println(fullName)
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func TestImageGzipFileNameToImageFullName(t *testing.T) {
|
||||
|
||||
frontendMap := make(map[string]string)
|
||||
backendMap := make(map[string]string)
|
||||
srsMap := make(map[string]string)
|
||||
|
||||
gzipFilePrefix := "/root/octopus_image/xjyd/"
|
||||
gzipFilePrefix := "/root/octopus_image/middle/"
|
||||
filepath.WalkDir(gzipFilePrefix, func(path string, d os.DirEntry, err error) error {
|
||||
//fmt.Println(path)
|
||||
name := d.Name()
|
||||
|
||||
Reference in New Issue
Block a user