mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-12 23:20:13 +00:00
updo auto build...
This commit is contained in:
parent
e526f00734
commit
6e8974d54b
@ -48,7 +48,7 @@ services:
|
||||
- tubearchivist_network
|
||||
tubearchivist:
|
||||
container_name: tubearchivist
|
||||
build: ../builder/clone/tubearchivist-website/tubearchivist/web
|
||||
build: ./tubearchivist/web
|
||||
restart: always
|
||||
volumes:
|
||||
- ./volume/tubearchivist/data:/data
|
||||
|
@ -45,14 +45,6 @@ class WebhookBase:
|
||||
"rebuild": [
|
||||
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "docs"]
|
||||
]
|
||||
},
|
||||
"tubearchivist-server": {
|
||||
"gh_user": "tubearchivist",
|
||||
"gh_repo": "tubearchivist-server",
|
||||
"unstable_keyword": "#build",
|
||||
"rebuild": [
|
||||
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "tubearchivist"]
|
||||
]
|
||||
}
|
||||
}
|
||||
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
||||
|
@ -79,14 +79,6 @@ class GithubHook(WebhookBase):
|
||||
TaskHandler(self.repo_conf).create_task("rebuild")
|
||||
return
|
||||
|
||||
if self.repo == "tubearchivist-server":
|
||||
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()
|
||||
|
||||
build_message = self.check_commit_message()
|
||||
|
Loading…
Reference in New Issue
Block a user