Skip to content

Commit a07ff9c

Browse files
committed
try to cache Docker image, show tree
1 parent 1774052 commit a07ff9c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/behat-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ jobs:
2424
- name: Show docker info
2525
run: docker compose version
2626

27+
- name: Build and cache Docker image
28+
uses: docker/build-push-action@v3
29+
with:
30+
context: .
31+
push: false
32+
cache-from: type=gha
33+
cache-to: type=gha,mode=max
34+
2735
- name: Start containers
2836
run: |
2937
docker compose -f "docker-compose.yml" up -d --build
@@ -32,6 +40,10 @@ jobs:
3240
run: |
3341
docker compose -f "docker-compose.yml" exec php composer update
3442
43+
- name: Debug docker files
44+
run: |
45+
docker compose -f "docker-compose.yml" exec php tree ./.docker
46+
3547
- name: Run behat tests
3648
run: docker compose -f "docker-compose.yml" exec php composer behat
3749

0 commit comments

Comments
 (0)