From 6e8974d54b8603c29bde7dfdef240cc62b7b1a3b Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 31 Jul 2023 22:54:14 +0700 Subject: [PATCH] updo auto build... --- docker-compose_production.yml | 2 +- tubearchivist/web/src/webhook_base.py | 8 -------- tubearchivist/web/src/webhook_github.py | 8 -------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/docker-compose_production.yml b/docker-compose_production.yml index 3ab8e03..5123409 100644 --- a/docker-compose_production.yml +++ b/docker-compose_production.yml @@ -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 diff --git a/tubearchivist/web/src/webhook_base.py b/tubearchivist/web/src/webhook_base.py index 06dee82..7dcbf25 100644 --- a/tubearchivist/web/src/webhook_base.py +++ b/tubearchivist/web/src/webhook_base.py @@ -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") diff --git a/tubearchivist/web/src/webhook_github.py b/tubearchivist/web/src/webhook_github.py index 7a7ce42..df1f2fd 100644 --- a/tubearchivist/web/src/webhook_github.py +++ b/tubearchivist/web/src/webhook_github.py @@ -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()