mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-21 11:20:12 +00:00
add docs build hook
This commit is contained in:
parent
52b893f4fa
commit
6bfa43c1f2
@ -60,6 +60,18 @@ services:
|
||||
- "8080"
|
||||
networks:
|
||||
- tubearchivist_network
|
||||
docs:
|
||||
build: https://github.com/tubearchivist/docs.git
|
||||
container_name: docs
|
||||
restart: always
|
||||
expose:
|
||||
- "8081"
|
||||
environment:
|
||||
- NGINX_PORT=8081
|
||||
- VIRTUAL_HOST=docs.tubearchivist.com
|
||||
- LETSENCRYPT_HOST=docs.tubearchivist.com
|
||||
networks:
|
||||
- tubearchivist_network
|
||||
# backend postgres
|
||||
postgres:
|
||||
image: postgres:14
|
||||
|
@ -38,6 +38,13 @@ class WebhookBase:
|
||||
"gh_user": "tubearchivist",
|
||||
"gh_repo": "browser-extension",
|
||||
"discord_release_hook": environ.get("GITHUB_RELEASE_HOOK_URL"),
|
||||
},
|
||||
"docs": {
|
||||
"gh_user": "tubearchivist",
|
||||
"gh_repo": "docs",
|
||||
"rebuild": [
|
||||
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "docs"]
|
||||
]
|
||||
}
|
||||
}
|
||||
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
||||
|
@ -74,6 +74,10 @@ class GithubHook(WebhookBase):
|
||||
print("commit not on master")
|
||||
return
|
||||
|
||||
if self.repo == "docs":
|
||||
TaskHandler(self.repo_conf).create_task("rebuild")
|
||||
return
|
||||
|
||||
self._check_readme()
|
||||
|
||||
build_message = self.check_commit_message()
|
||||
|
Loading…
Reference in New Issue
Block a user