添加keys 发布接口
This commit is contained in:
parent
9e99ede961
commit
6e896541c5
@ -86,9 +86,10 @@ class DeployKeys:
|
||||
log.error(f"get remote {self.project} svn failed", exc_info=True)
|
||||
|
||||
project_paths = os.path.join(self.svn_paths, self.project)
|
||||
tar = tarfile.open(project_paths + '.tar.gz', 'w:gz')
|
||||
os.chdir(self.project_paths)
|
||||
for f in os.listdir(self.svn_paths):
|
||||
tar = tarfile.open(self.svn_paths + '.tar.gz', 'w:gz')
|
||||
os.chdir(self.svn_paths)
|
||||
key_dirs = os.path.join(self.svn_paths, "keys")
|
||||
for f in os.listdir(key_dirs):
|
||||
tar.add(f)
|
||||
tar.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user