74ddcec9e5f7eaf30460e7bbf30a866c95fcd203

Author
TheEdgeOfClaw <openclaw@theedgeofrage.com>
Committer
GitHub <noreply@github.com>
Date

Message

Fix Github Docker layer caching (#7)

Diff

 1diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
 2index 6a0cb887b563cc1143e802f8fbed1d383fa608ca..51e1e68cd1f5510b2e81c8627e2a82e47db63741 100644
 3--- a/.github/workflows/ci.yaml
 4+++ b/.github/workflows/ci.yaml
 5@@ -48,28 +48,30 @@ jobs:
 6           make test
 7 
 8       - name: Set up Docker Buildx
 9-        uses: docker/setup-buildx-action@v3
10+        uses: docker/setup-buildx-action@v4
11+        with:
12+          version: latest
13 
14       - name: Login to Docker Hub
15-        uses: docker/login-action@v3
16+        uses: docker/login-action@v4
17         with:
18           username: ${{ secrets.DOCKER_USERNAME }}
19           password: ${{ secrets.DOCKER_PASSWORD }}
20 
21       - name: Build and push API image
22-        uses: docker/build-push-action@v6
23+        uses: docker/build-push-action@v7
24         with:
25           push: true
26           tags: theedgeofrage/ytrssil:api
27           target: api
28-          cache-from: type=registry,ref=theedgeofrage/ytrssil:buildcache
29-          cache-to: type=registry,ref=theedgeofrage/ytrssil:buildcache,mode=max
30+          cache-from: type=gha
31+          cache-to: type=gha,mode=max
32 
33       - name: Build and push migrations image
34-        uses: docker/build-push-action@v6
35+        uses: docker/build-push-action@v7
36         with:
37           push: true
38           tags: theedgeofrage/ytrssil:migrations
39           target: migrations
40-          cache-from: type=registry,ref=theedgeofrage/ytrssil:buildcache
41-          cache-to: type=registry,ref=theedgeofrage/ytrssil:buildcache,mode=max
42+          cache-from: type=gha
43+          cache-to: type=gha,mode=max