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] diff --git a/main.py b/main.py index b46e7dc..8497e15 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(list(configurator.get_config("hosts")) + ["platform.develop.sprinthub.ru"])) + else: + return list(set(list(configurator.get_config("hosts")) + ["platform.sprinthub.ru"])) def update_host(host: str) -> bool: