[docker] Use GITHUB_REPOSITORY instead of hardcoded esphome/esphome (#18916)

This commit is contained in:
Clyde Stubbs
2026-09-01 07:01:53 +10:00
committed by GitHub
parent ea1e0c6f68
commit 61e37cfc86
+3 -1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
import argparse
import os
import re
CHANNEL_DEV = "dev"
@@ -64,7 +65,8 @@ def main():
suffix = f"-{args.suffix}" if args.suffix else ""
image_name = f"esphome/esphome{suffix}"
repository = (os.environ.get("GITHUB_REPOSITORY") or "esphome/esphome").strip().lower()
image_name = f"{repository}{suffix}"
print(f"channel={channel}")