FIX 优化ci初始化流程

This commit is contained in:
Jasder
2020-08-28 10:25:08 +08:00
parent b26c2f273f
commit b75896821f
7 changed files with 33 additions and 34 deletions
+6 -7
View File
@@ -16,13 +16,12 @@ class Ci::Repo < Ci::RemoteBase
[user, repo]
end
def config_trustie_pipeline
update_column(:repo_config, '.trustie-pipeline.yml')
end
def activate
# repo_active、repo_signer、repo_secret、repo_updated
update_columns(repo_active: 1, repo_signer: generate_code, repo_secret: generate_code, repo_updated: Time.now.to_i)
def activate!
update_columns(repo_active: 1,
repo_signer: generate_code,
repo_secret: generate_code,
repo_config: '.trustie-pipeline.yml',
repo_updated: Time.now.to_i)
end
end