Skip to content

Commit

Permalink
Fixed cache image issue, now the cache will point to the latest build…
Browse files Browse the repository at this point in the history
… instead of latest tag
  • Loading branch information
eranco74 committed Dec 31, 2017
1 parent 262a567 commit 7cedfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skipper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def build(ctx, images_to_build, container_context, cache):

if cache:
cache_image = utils.generate_fqdn_image(ctx.obj['registry'], namespace=None, image=image, tag=DOCKER_TAG_FOR_CACHE)
runner.run(['docker', 'tag', image, cache_image])
runner.run(['docker', 'tag', fqdn_image, cache_image])
runner.run(['docker', 'push', cache_image])

return 0
Expand Down

0 comments on commit 7cedfc1

Please sign in to comment.