From 7e40a5e9f59a9744f2055b066703f6c63bfeae77 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Wed, 4 Jun 2025 02:55:58 +0300 Subject: [PATCH 1/3] fix --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index b46e7dc..be1719c 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,10 @@ def call(command: str) -> Response: def get_hosts() -> list[str]: - return list(set(configurator.get_config("hosts") + ["platform.develop.sprinthub.ru"])) + if os.getenv("STAGE") == "development": + return list(set(configurator.get_config("hosts") + ["platform.develop.sprinthub.ru"])) + else: + return list(set(configurator.get_config("hosts") + ["platform.sprinthub.ru"])) def update_host(host: str) -> bool: From 71521fdbb5ffcaef11ccbe924cf52eabed48d9a9 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Wed, 4 Jun 2025 03:07:02 +0300 Subject: [PATCH 2/3] fix --- .gitea/workflows/deploy-prod.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-prod.yaml b/.gitea/workflows/deploy-prod.yaml index e487206..a97395d 100644 --- a/.gitea/workflows/deploy-prod.yaml +++ b/.gitea/workflows/deploy-prod.yaml @@ -18,14 +18,14 @@ jobs: with: ref: prod - name: build - run: docker build -t mathwave/sprint-repo:pizda-bot . + run: docker build -t mathwave/sprint-repo:certupdater . push: name: Push runs-on: [ dev ] needs: build steps: - name: push - run: docker push mathwave/sprint-repo:pizda-bot + run: docker push mathwave/sprint-repo:certupdater deploy-prod: name: Deploy prod runs-on: [prod] From 67ab03227acf8df606868b6d50a21679d16976f8 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Wed, 4 Jun 2025 21:07:43 +0300 Subject: [PATCH 3/3] fix --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index be1719c..8497e15 100644 --- a/main.py +++ b/main.py @@ -25,9 +25,9 @@ def call(command: str) -> Response: def get_hosts() -> list[str]: if os.getenv("STAGE") == "development": - return list(set(configurator.get_config("hosts") + ["platform.develop.sprinthub.ru"])) + return list(set(list(configurator.get_config("hosts")) + ["platform.develop.sprinthub.ru"])) else: - return list(set(configurator.get_config("hosts") + ["platform.sprinthub.ru"])) + return list(set(list(configurator.get_config("hosts")) + ["platform.sprinthub.ru"])) def update_host(host: str) -> bool: