We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ContainerEngine.build()
push
1 parent 32503ab commit bc5704dCopy full SHA for bc5704d
repo2docker/app.py
@@ -733,7 +733,10 @@ def build(self):
733
try:
734
self.fetch(self.repo, self.ref, checkout_path)
735
736
- if self.find_image():
+ if self.find_image() and not self.push:
737
+ # If push is requested we don't have a general way to query the registry.
738
+ # ContainerEngine.build() also handles pushing, so always "build" and
739
+ # rely on the implementation to decide whether to rebuild.
740
self.log.info(
741
f"Reusing existing image ({self.output_image_spec}), not building."
742
)
0 commit comments