We need to make sure to use the *full* command
This commit is contained in:
parent
6601e83285
commit
00299ca60f
1 changed files with 2 additions and 3 deletions
|
@ -62,9 +62,8 @@ class BuildJob(object):
|
|||
|
||||
# For each cache comment, find a child image that matches the command.
|
||||
for cache_command in cache_commands:
|
||||
print current_image.docker_image_id
|
||||
|
||||
current_image = model.find_child_image(repository, current_image, cache_command)
|
||||
full_command = '["/bin/sh", "-c", "%s"]' % cache_command
|
||||
current_image = model.find_child_image(repository, current_image, full_command)
|
||||
if current_image is None:
|
||||
return None
|
||||
|
||||
|
|
Reference in a new issue