39
39
with :
40
40
path : |
41
41
home-nonroot-cache-uv
42
- key : cache-uv-${{ hashFiles('uv.lock') }}
42
+ key : cache-uv-linux-amd64- ${{ hashFiles('uv.lock') }}
43
43
44
44
- name : APT Build Caches for Docker APT
45
45
id : docker-build-apt-cache
48
48
path : |
49
49
var-cache-apt
50
50
var-lib-apt
51
- key : cache-apt-${{ hashFiles('Dockerfile') }}
51
+ key : cache-apt-linux-amd64- ${{ hashFiles('Dockerfile') }}
52
52
53
53
- name : Inject UV cache in docker
54
54
uses :
reproducible-containers/[email protected]
57
57
{
58
58
"home-nonroot-cache-uv": "/home/nonroot/.cache/uv"
59
59
}
60
- skip-extraction : ${{ steps.docker-build-uv-cache.outputs.cache-hit }}
61
60
62
61
- name : Inject APT cache in docker
63
62
uses :
reproducible-containers/[email protected]
67
66
"var-cache-apt": "/var/cache/apt",
68
67
"var-lib-apt": "/var/lib/apt"
69
68
}
70
- skip-extraction : ${{ steps.docker-build-apt-cache.outputs.cache-hit }}
71
69
72
70
# Build but don't push Docker image with Buildx
73
71
# https://github.com/docker/build-push-action
@@ -159,7 +157,7 @@ jobs:
159
157
with :
160
158
path : |
161
159
home-nonroot-cache-uv
162
- key : cache-uv-${{ hashFiles('uv.lock') }}
160
+ key : cache-uv-${{ env.PLATFORM_PAIR }}-${{ hashFiles('uv.lock') }}
163
161
164
162
- name : APT Build Caches for Docker APT
165
163
id : docker-build-apt-cache
@@ -168,7 +166,7 @@ jobs:
168
166
path : |
169
167
var-cache-apt
170
168
var-lib-apt
171
- key : cache-apt-${{ hashFiles('Dockerfile') }}
169
+ key : cache-apt-${{ env.PLATFORM_PAIR }}-${{ hashFiles('Dockerfile') }}
172
170
173
171
- name : Inject UV cache in docker
174
172
uses :
reproducible-containers/[email protected]
@@ -177,7 +175,6 @@ jobs:
177
175
{
178
176
"home-nonroot-cache-uv": "/home/nonroot/.cache/uv"
179
177
}
180
- skip-extraction : ${{ steps.docker-build-uv-cache.outputs.cache-hit }}
181
178
182
179
- name : Inject APT cache in docker
183
180
uses :
reproducible-containers/[email protected]
@@ -187,7 +184,6 @@ jobs:
187
184
"var-cache-apt": "/var/cache/apt",
188
185
"var-lib-apt": "/var/lib/apt"
189
186
}
190
- skip-extraction : ${{ steps.docker-build-apt-cache.outputs.cache-hit }}
191
187
192
188
# This build an image WITHOUT tags and outputs the digests, so that we can aggragate them later
193
189
- name : Build and push production image
0 commit comments