Compare commits
1 Commits
master
...
fix-git-co
Author | SHA1 | Date |
---|---|---|
Aravinth Manivannan | 28caa38dd4 |
|
@ -115,7 +115,9 @@ class Infra:
|
||||||
os.makedirs(self.repo_path)
|
os.makedirs(self.repo_path)
|
||||||
|
|
||||||
ssh_cmd = f"/usr/bin/ssh -oStrictHostKeyChecking=no -i {conf['SSH_KEY']}"
|
ssh_cmd = f"/usr/bin/ssh -oStrictHostKeyChecking=no -i {conf['SSH_KEY']}"
|
||||||
self.env = {"GIT_SSH_COMMAND": ssh_cmd}
|
self.env = {
|
||||||
|
"GIT_SSH_COMMAND": ssh_cmd,
|
||||||
|
}
|
||||||
self._clone()
|
self._clone()
|
||||||
|
|
||||||
def _clone(self):
|
def _clone(self):
|
||||||
|
@ -225,9 +227,21 @@ class Infra:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._add_files(subdomain=subdomain)
|
self._add_files(subdomain=subdomain)
|
||||||
|
|
||||||
|
name = "Dashboard Bot"
|
||||||
|
email = "<bot@dashboard.hostea.org>"
|
||||||
|
|
||||||
|
env = self.env | {
|
||||||
|
"GIT_AUTHOR_NAME": name,
|
||||||
|
"GIT_AUTHOR_EMAIL": email,
|
||||||
|
"GIT_COMMITTER_NAME": name,
|
||||||
|
"GIT_COMMITTER_EMAIL": email,
|
||||||
|
}
|
||||||
|
|
||||||
return self.repo.git.commit(
|
return self.repo.git.commit(
|
||||||
message=f"{action} VM {subdomain}",
|
message=f"{action} VM {subdomain}",
|
||||||
author="Dashboard Bot <bot@dashboard.hostea.org>",
|
author="Dashboard Bot <bot@dashboard.hostea.org>",
|
||||||
|
env=env,
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue