Skip to content

Commit 597e43d

Browse files
committed
Fix registry <-> push_secret config interaction
1 parent e450433 commit 597e43d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

binderhub/builder.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,6 @@ async def get(self, provider_prefix, _unescaped_spec):
437437
# Prepare to build
438438
q = Queue()
439439

440-
# if self.settings["use_registry"] or self.settings["build_docker_config"]:
441-
# push_secret = self.settings["push_secret"]
442-
# else:
443-
# push_secret = None
444-
445440
BuildClass = self.settings.get("build_class")
446441

447442
build = BuildClass(
@@ -454,6 +449,9 @@ async def get(self, provider_prefix, _unescaped_spec):
454449
image_name=image_name,
455450
git_credentials=provider.git_credentials,
456451
)
452+
if not self.settings["use_registry"]:
453+
build.push_secret = ""
454+
457455
self.build = build
458456

459457
with BUILDS_INPROGRESS.track_inprogress():

0 commit comments

Comments
 (0)