Skip to content

Commit 95e6fa0

Browse files
committed
Merge branch 'develop' into chzheng/docker_image_flag
2 parents 1321793 + e3ae587 commit 95e6fa0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
* @Obliviour @44past4 @sharabiani @pawloch00 @BluValor @gcie @RoshaniN
1+
* @Obliviour @44past4 @sharabiani @pawloch00 @BluValor @gcie @RoshaniN @scaliby @jamOne- @SikaGrr @FIoannides @fatoshoti
22
slice/ @mwysokin @mimowo @gabesaba @PBundyra @mwielgus @pajakd

src/xpk/core/docker_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
DEFAULT_DOCKER_IMAGE = 'python:3.10'
2727
DEFAULT_SCRIPT_DIR = os.getcwd()
2828
PLATFORM = 'linux/amd64'
29+
CLOUD_PREFIXES = ['gcr.io', 'docker.pkg.dev', 'us-docker.pkg.dev']
2930

3031

3132
def validate_docker_image(docker_image, args) -> int:
@@ -232,9 +233,8 @@ def setup_docker_image(args) -> tuple[int, str]:
232233
)
233234
xpk_exit(1)
234235

235-
cloud_prefixes = ['gcr.io', 'docker.pkg.dev', 'us-docker.pkg.dev']
236236
is_cloud_image = any(
237-
docker_image.startswith(prefix) for prefix in cloud_prefixes
237+
docker_image.startswith(prefix) for prefix in CLOUD_PREFIXES
238238
)
239239

240240
if is_cloud_image:

0 commit comments

Comments
 (0)