Skip to content

Commit 9099ff1

Browse files
committed
try different approach for docker cache
1 parent a07ff9c commit 9099ff1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/behat-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ jobs:
2121
with:
2222
fetch-depth: 2
2323

24-
- name: Show docker info
25-
run: docker compose version
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3
2626

2727
- name: Build and cache Docker image
28-
uses: docker/build-push-action@v3
28+
uses: docker/build-push-action@v6
2929
with:
3030
context: .
3131
push: false
32-
cache-from: type=gha
33-
cache-to: type=gha,mode=max
32+
tags: user/app:latest
33+
cache-from: type=registry,ref=user/app:latest
34+
cache-to: type=inline
3435

3536
- name: Start containers
3637
run: |

0 commit comments

Comments
 (0)