From e773420c23d688caf6a03de04e56db63f5a1e386 Mon Sep 17 00:00:00 2001 From: maxmwang Date: Sat, 14 Dec 2024 22:43:00 -0800 Subject: [PATCH] use cache mode=max --- .github/workflows/cd-deploy-docs.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-deploy-docs.yaml b/.github/workflows/cd-deploy-docs.yaml index 67a8975b7..d708d0de9 100644 --- a/.github/workflows/cd-deploy-docs.yaml +++ b/.github/workflows/cd-deploy-docs.yaml @@ -28,10 +28,12 @@ jobs: uses: docker/build-push-action@v6 with: context: docs - push: true + target: docs-prod tags: ${{ secrets.DOCKER_USERNAME }}/bt-docs:prod cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/bt-docs:prod-cache - cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/bt-docs:prod-cache + cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/bt-docs:prod-cache,mode=max + platforms: linux/amd64 + push: true deploy: name: SSH and Deploy