ci: optimize CI/CD pipeline with Docker build cache

- Add Docker build cache configuration to GitHub Actions workflow

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2024-06-01 09:53:07 +08:00
parent dc026ac547
commit be0b134f0a
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -70,3 +70,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max