Merge pull request 'master' (#35) from master into dev

Reviewed-on: #35
This commit is contained in:
emmatveev 2025-06-04 21:08:09 +03:00
commit 6cedf34b8e
2 changed files with 6 additions and 3 deletions

View File

@ -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]

View File

@ -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: