Merge pull request 'master' (#35) from master into dev
Reviewed-on: #35
This commit is contained in:
commit
6cedf34b8e
@ -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]
|
||||
|
5
main.py
5
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:
|
||||
|
Loading…
Reference in New Issue
Block a user