From 7cedfc185093e31dccc4c7a4b154a9d23ee12cb0 Mon Sep 17 00:00:00 2001 From: Eran Cohen Date: Sun, 31 Dec 2017 10:25:35 +0200 Subject: [PATCH] Fixed cache image issue, now the cache will point to the latest build instead of latest tag --- skipper/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skipper/cli.py b/skipper/cli.py index 30f9419..06f9a77 100644 --- a/skipper/cli.py +++ b/skipper/cli.py @@ -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