File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 93
93
type=raw,enable=${{ github.ref_type == 'tag' }}, value=latest
94
94
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
95
95
96
+ - name : Set up apt cache
97
+ uses : actions/cache@v4
98
+ id : cache
99
+ with :
100
+ path : |
101
+ var-cache-apt
102
+ var-lib-apt
103
+ /root/.cache/uv
104
+ key : cache-${{ hashFiles('Dockerfile') }}
105
+
106
+ - name : Inject cache into docker
107
+ uses : reproducible-containers/buildkit-cache-dance@v3.1.0
108
+ with :
109
+ cache-map : |
110
+ {
111
+ "var-cache-apt": "/var/cache/apt",
112
+ "var-lib-apt": "/var/lib/apt"
113
+ "root-cache-uv": "/root/.cache/uv"
114
+ }
115
+ skip-extraction : ${{ steps.cache.outputs.cache-hit }}
116
+
96
117
# Build and export Docker image for each platform (without pushing)
97
118
- name : Build Docker image
98
119
id : build
You can’t perform that action at this time.
0 commit comments