Skip to content

Commit 720cc40

Browse files
chore: refine CI Docker cache (#444)
1 parent f7dea96 commit 720cc40

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,15 @@ jobs:
6666
compose.yaml
6767
compose.prod.yaml
6868
set: |
69-
*.cache-from=type=gha,scope=${{ github.ref }}
70-
*.cache-from=type=gha,scope=refs/heads/main
71-
*.cache-to=type=gha,scope=${{ github.ref }},mode=max
69+
php.cache-from=type=gha,scope=${{ github.ref }}
70+
php.cache-from=type=gha,scope=refs/heads/main
71+
php.cache-to=type=gha,scope=${{ github.ref }},mode=max
72+
pwa.cache-from=type=gha,scope=${{ github.ref }}
73+
pwa.cache-from=type=gha,scope=refs/heads/main
74+
pwa.cache-to=type=gha,scope=${{ github.ref }},mode=max
75+
keycloak.cache-from=type=gha,scope=${{ github.ref }}
76+
keycloak.cache-from=type=gha,scope=refs/heads/main
77+
keycloak.cache-to=type=gha,scope=${{ github.ref }},mode=max
7278
-
7379
name: Docker push
7480
run: |

.github/workflows/ci.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,15 @@ jobs:
3939
compose.yaml
4040
compose.override.yaml
4141
set: |
42-
*.cache-from=type=gha,scope=${{ github.ref }}
43-
*.cache-from=type=gha,scope=refs/heads/main
44-
*.cache-to=type=gha,scope=${{ github.ref }},mode=max
42+
php.cache-from=type=gha,scope=${{ github.ref }}
43+
php.cache-from=type=gha,scope=refs/heads/main
44+
php.cache-to=type=gha,scope=${{ github.ref }},mode=max
45+
pwa.cache-from=type=gha,scope=${{ github.ref }}
46+
pwa.cache-from=type=gha,scope=refs/heads/main
47+
pwa.cache-to=type=gha,scope=${{ github.ref }},mode=max
48+
keycloak.cache-from=type=gha,scope=${{ github.ref }}
49+
keycloak.cache-from=type=gha,scope=refs/heads/main
50+
keycloak.cache-to=type=gha,scope=${{ github.ref }},mode=max
4551
-
4652
name: Start services
4753
run: docker compose up --wait --no-build
@@ -130,10 +136,18 @@ jobs:
130136
compose.yaml
131137
compose.prod.yaml
132138
set: |
133-
*.cache-from=type=gha,scope=${{ github.ref }}-e2e
134-
*.cache-from=type=gha,scope=${{ github.ref }}
135-
*.cache-from=type=gha,scope=refs/heads/main
136-
*.cache-to=type=gha,scope=${{ github.ref }}-e2e,mode=max
139+
php.cache-from=type=gha,scope=${{ github.ref }}-e2e
140+
php.cache-from=type=gha,scope=${{ github.ref }}
141+
php.cache-from=type=gha,scope=refs/heads/main
142+
php.cache-to=type=gha,scope=${{ github.ref }}-e2e,mode=max
143+
pwa.cache-from=type=gha,scope=${{ github.ref }}-e2e
144+
pwa.cache-from=type=gha,scope=${{ github.ref }}
145+
pwa.cache-from=type=gha,scope=refs/heads/main
146+
pwa.cache-to=type=gha,scope=${{ github.ref }}-e2e,mode=max
147+
keycloak.cache-from=type=gha,scope=${{ github.ref }}-e2e
148+
keycloak.cache-from=type=gha,scope=${{ github.ref }}
149+
keycloak.cache-from=type=gha,scope=refs/heads/main
150+
keycloak.cache-to=type=gha,scope=${{ github.ref }}-e2e,mode=max
137151
-
138152
name: Start Services
139153
run: docker compose up --wait --no-build

0 commit comments

Comments
 (0)