Ver Fonte

ci: add more cache logic

iwanhae há 1 ano atrás
pai
commit
bdd823a219
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      .github/workflows/build_docker_parser.yaml

+ 4 - 2
.github/workflows/build_docker_parser.yaml

@@ -75,7 +75,9 @@ jobs:
           labels: ${{ steps.meta.outputs.labels }}
           target: builder
           cache-from: type=gha
-          cache-to: type=gha,mode=max
+          cache-to: |
+            type=gha,mode=max
+            type=local,dest=~/cache
 
       - name: Build and Push to GCR
         id: build-and-push-gcr
@@ -85,4 +87,4 @@ jobs:
           push: ${{ github.event_name != 'pull_request' }}
           tags: ${{ steps.meta-gcr.outputs.tags }}
           labels: ${{ steps.meta-gcr.outputs.labels }}
-          cache-from: type=gha
+          cache-from: type=local,src=~/cache