mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-24 04:30:13 +00:00
updo auto build...
This commit is contained in:
parent
e526f00734
commit
6e8974d54b
@ -48,7 +48,7 @@ services:
|
|||||||
- tubearchivist_network
|
- tubearchivist_network
|
||||||
tubearchivist:
|
tubearchivist:
|
||||||
container_name: tubearchivist
|
container_name: tubearchivist
|
||||||
build: ../builder/clone/tubearchivist-website/tubearchivist/web
|
build: ./tubearchivist/web
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./volume/tubearchivist/data:/data
|
- ./volume/tubearchivist/data:/data
|
||||||
|
@ -45,14 +45,6 @@ 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"]
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"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")
|
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
||||||
|
@ -79,14 +79,6 @@ class GithubHook(WebhookBase):
|
|||||||
TaskHandler(self.repo_conf).create_task("rebuild")
|
TaskHandler(self.repo_conf).create_task("rebuild")
|
||||||
return
|
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()
|
self._check_readme()
|
||||||
|
|
||||||
build_message = self.check_commit_message()
|
build_message = self.check_commit_message()
|
||||||
|
Loading…
Reference in New Issue
Block a user