```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

refactor(.woodpecker): 移除全局配置变量并优化SSH连接设置

移除了全局配置变量,改用YAML锚点引用方式统一管理SSH连接参数,
提高配置的可维护性并减少重复代码
This commit is contained in:
昔念
2026-01-30 22:18:44 +08:00
parent dd2a267194
commit d6f8e9dbf7
7 changed files with 35 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
package coolconfig
import (
"time"
"github.com/gogf/gf/v2/frame/g"
)
@@ -44,6 +46,8 @@ type ServerList struct {
Owner uint32 `gorm:"comment:'服务器属主'" json:"owner"`
Desc string `gorm:"comment:'服务器描述'" json:"desc"`
OldScreen string `gorm:"comment:'服务器screen参数'" json:"old_screen"`
//到期时间ServerList
ExpireTime time.Time `gorm:"default:0;comment:'到期时间'" json:"expire_time"`
}
// OSS相关配置