Skip to content

Commit 5702576

Browse files
committed
feat: enable gha caching on github action
1 parent a5fa615 commit 5702576

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build_container.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ jobs:
7676
labels: ${{ steps.meta-api.outputs.labels }}
7777
build-args: |
7878
API_PORT=${{ env.API_PORT }}
79-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.API_IMAGE }}:buildcache
80-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.API_IMAGE }}:buildcache,mode=max
79+
cache-from: type=gha
80+
cache-to: type=gha,mode=max
81+
provenance: false
8182

8283
build-and-push-view:
8384
runs-on: ubuntu-latest
@@ -87,7 +88,7 @@ jobs:
8788

8889
steps:
8990
- name: Checkout repository
90-
uses: actions/checkout@v4
91+
uses: actions/checkout@v6
9192
with:
9293
fetch-depth: 0
9394
ssh-key: ${{ secrets.DEPLOY_KEY }}
@@ -131,5 +132,6 @@ jobs:
131132
labels: ${{ steps.meta-view.outputs.labels }}
132133
build-args: |
133134
NEXT_PUBLIC_PORT=${{ env.NEXT_PUBLIC_PORT }}
134-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.VIEW_IMAGE }}:buildcache
135-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.VIEW_IMAGE }}:buildcache,mode=max
135+
cache-from: type=gha
136+
cache-to: type=gha,mode=max
137+
provenance: false

0 commit comments

Comments
 (0)