From e4b63afa678d67fe4b82e123e40498fefdfebc7f Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 29 Aug 2023 22:43:32 -0400 Subject: [PATCH] try inline cache --- bin/docker-build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/docker-build b/bin/docker-build index ed22226..ecf3c66 100755 --- a/bin/docker-build +++ b/bin/docker-build @@ -14,11 +14,10 @@ def main() -> int: for filename in os.listdir('dockerfiles'): _, name = filename.split('.') tag = f'ghcr.io/deadsnakes/{name}:latest' - tag_cache = f'{tag}-cache' print(f' {tag} '.center(79, '='), flush=True) if args.event == 'push': - extra: tuple[str, ...] = ('--cache-to', tag_cache, '--push') + extra: tuple[str, ...] = ('--push',) else: extra = () @@ -26,7 +25,8 @@ def main() -> int: cmd = ( 'docker', 'buildx', 'build', '--pull', - '--cache-from', tag_cache, + '--cache-from', tag, + '--cache-to', 'type=inline', '--tag', tag, *extra, '-',