mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
增加trustie提供服务器流程。
1、增加接口trustie_bind 2、根据server_type字段判断使用哪个数据库连接
This commit is contained in:
@@ -20,6 +20,10 @@ class Ci::CloudAccount < Ci::LocalBase
|
||||
belongs_to :user
|
||||
belongs_to :ci_user, class_name: 'Ci::User', foreign_key: :ci_user_id, optional: true
|
||||
|
||||
# server_type column: 0: 自有服务器;1: trustie提供服务器
|
||||
SERVER_TYPE_SELF = 0
|
||||
SERVER_TYPE_TRUSTIE = 1
|
||||
|
||||
def drone_host
|
||||
[drone_ip, ":80"].join
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user