Skip to content

Commit

Permalink
🐛 fix container name
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Apr 17, 2024
1 parent 56031cf commit 4ebf8ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/owidbot/etldiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from rich.ansi import AnsiDecoder
from rich_click.rich_command import RichCommand

from apps.staging_sync.cli import _normalise_branch
from apps.staging_sync.cli import _get_container_name
from etl import config
from etl.paths import BASE_DIR

Expand Down Expand Up @@ -55,7 +55,7 @@ def cli(
lines = call_etl_diff(include)
diff, result = format_etl_diff(lines)

nbranch = _normalise_branch(branch) if branch else "dry-run"
container_name = _get_container_name(branch) if branch else "dry-run"

# TODO: only include site-screenshots if the PR is from owid-grapher. Similarly, don't
# run etl diff if the PR is from etl repo.
Expand All @@ -66,9 +66,9 @@ def cli(
<summary><b>Staging server</b>: </summary>
- **Admin**: http://staging-site-{nbranch}/admin/login
- **Site**: http://staging-site-{nbranch}/
- **Login**: `ssh owid@staging-site-{nbranch}`
- **Admin**: http://{container_name}/admin/login
- **Site**: http://{container_name}/
- **Login**: `ssh owid@{container_name}`
</details>
<details>
Expand Down

0 comments on commit 4ebf8ff

Please sign in to comment.