Explorar el Código

ci: add more cache logic

iwanhae hace 1 año
padre
commit
bdd823a219
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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