From 6e8a2c4fd842b14064a32fe072dd0139a0365b62 Mon Sep 17 00:00:00 2001 From: Fedir Zadniprovskyi Date: Sun, 26 May 2024 17:22:36 -0700 Subject: [PATCH] ci: add docker cache --- .github/workflows/docker-build-and-push.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-build-and-push.yaml b/.github/workflows/docker-build-and-push.yaml index 22e2dbd8..c365419d 100644 --- a/.github/workflows/docker-build-and-push.yaml +++ b/.github/workflows/docker-build-and-push.yaml @@ -7,6 +7,8 @@ on: - "master" tags: - 'v*' + release: + types: [published] jobs: docker: @@ -50,6 +52,5 @@ jobs: # TODO: # platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} - # TODO: - # cache-from: type=registry,ref=fedirz/faster-whisper-server:buildcache - # cache-to: type=registry,ref=fedirz/faster-whisper-server:buildcache,mode=max + cache-from: type=registry,ref=fedirz/faster-whisper-server:buildcache + cache-to: type=registry,ref=fedirz/faster-whisper-server:buildcache,mode=max