Skip to content

Commit

Permalink
Allow to specify release via env
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor committed Jan 25, 2024
1 parent 3b3309f commit 8f0fd42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dstack/_internal/core/backends/base/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def get_latest_runner_build() -> Optional[str]:


def get_dstack_gateway_wheel(build: str) -> str:
channel = "release" if version.__is_release__ else "stgn"
channel = "release" if settings.DSTACK_RELEASE else "stgn"
return f"https://dstack-gateway-downloads.s3.amazonaws.com/{channel}/dstack_gateway-{build}-py3-none-any.whl"


Expand Down
1 change: 1 addition & 0 deletions src/dstack/_internal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
from dstack import version

DSTACK_VERSION = os.getenv("DSTACK_VERSION", version.__version__)
DSTACK_RELEASE = os.getenv("DSTACK_RELEASE") is not None or version.__is_release__

0 comments on commit 8f0fd42

Please sign in to comment.