mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-24 20:50:13 +00:00
trigger website rebuild on build hook
This commit is contained in:
parent
1a464b4397
commit
1498b5712f
@ -45,6 +45,14 @@ class WebhookBase:
|
|||||||
"rebuild": [
|
"rebuild": [
|
||||||
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "docs"]
|
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "docs"]
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"website": {
|
||||||
|
"gh_user": "tubearchivist",
|
||||||
|
"gh_repo": "docs",
|
||||||
|
"unstable_keyword": "#build",
|
||||||
|
"rebuild": [
|
||||||
|
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "tubearchivist"]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
||||||
|
@ -79,6 +79,14 @@ class GithubHook(WebhookBase):
|
|||||||
TaskHandler(self.repo_conf).create_task("rebuild")
|
TaskHandler(self.repo_conf).create_task("rebuild")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self.repo == "website":
|
||||||
|
to_rebuild = self.check_commit_message()
|
||||||
|
if to_rebuild:
|
||||||
|
TaskHandler(self.repo_conf).create_task("rebuild")
|
||||||
|
else:
|
||||||
|
print("build keyword not found in commit message")
|
||||||
|
return
|
||||||
|
|
||||||
self._check_readme()
|
self._check_readme()
|
||||||
|
|
||||||
build_message = self.check_commit_message()
|
build_message = self.check_commit_message()
|
||||||
|
Loading…
Reference in New Issue
Block a user