Skip to content

Commit e36f796

Browse files
author
Keerthan Reddy Mala
committed
fix(registry): User should be able to pull the image from internal registry
1 parent 48fb991 commit e36f796

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

rootfs/api/models/release.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ def image(self):
5454
self.build.image.startswith(settings.REGISTRY_HOST) or
5555
self.build.image.startswith(settings.REGISTRY_URL)
5656
):
57-
# strip registry information off first
58-
image = self.build.image.replace('{}/'.format(settings.REGISTRY_URL), '')
59-
return image.replace('{}/'.format(settings.REGISTRY_HOST), '')
57+
return self.build.image
6058

6159
# Sort out image information based on build type
6260
if self.build.type == 'dockerfile':

0 commit comments

Comments
 (0)