@@ -89,12 +89,15 @@ jobs:
89
89
TYPE="-${{ matrix.config.tag }}"
90
90
fi
91
91
PREFIX="ghcr.io/${REPO_OWNER}/${REPO_NAME}:"
92
+ CACHETAGS="${PREFIX}buildcache${TYPE}"
92
93
FULLTAGS="${PREFIX}full${TYPE},${PREFIX}full${TYPE}-${{ steps.srctag.outputs.name }}"
93
94
LIGHTTAGS="${PREFIX}light${TYPE},${PREFIX}light${TYPE}-${{ steps.srctag.outputs.name }}"
94
95
SERVERTAGS="${PREFIX}server${TYPE},${PREFIX}server${TYPE}-${{ steps.srctag.outputs.name }}"
96
+ echo "cache_output_tags=$CACHETAGS" >> $GITHUB_OUTPUT
95
97
echo "full_output_tags=$FULLTAGS" >> $GITHUB_OUTPUT
96
98
echo "light_output_tags=$LIGHTTAGS" >> $GITHUB_OUTPUT
97
99
echo "server_output_tags=$SERVERTAGS" >> $GITHUB_OUTPUT
100
+ echo "cache_output_tags=$CACHETAGS" # print out for debugging
98
101
echo "full_output_tags=$FULLTAGS" # print out for debugging
99
102
echo "light_output_tags=$LIGHTTAGS" # print out for debugging
100
103
echo "server_output_tags=$SERVERTAGS" # print out for debugging
@@ -131,11 +134,14 @@ jobs:
131
134
target : full
132
135
provenance : false
133
136
# using github experimental cache
134
- cache-from : type=gha
135
- cache-to : type=gha,mode=max
137
+ # cache-from: type=gha
138
+ # cache-to: type=gha,mode=max
136
139
# return to this if the experimental github cache is having issues
137
140
# cache-to: type=local,dest=/tmp/.buildx-cache
138
141
# cache-from: type=local,src=/tmp/.buildx-cache
142
+ # using registry cache (no storage limit)
143
+ cache-from : type=registry,ref=${{ steps.tag.outputs.cache_output_tags }}
144
+ cache-to : type=registry,ref=${{ steps.tag.outputs.cache_output_tags }},mode=max
139
145
140
146
- name : Build and push Light Docker image (tagged + versioned)
141
147
if : ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && matrix.config.light == true }}
@@ -150,11 +156,14 @@ jobs:
150
156
target : light
151
157
provenance : false
152
158
# using github experimental cache
153
- cache-from : type=gha
154
- cache-to : type=gha,mode=max
159
+ # cache-from: type=gha
160
+ # cache-to: type=gha,mode=max
155
161
# return to this if the experimental github cache is having issues
156
162
# cache-to: type=local,dest=/tmp/.buildx-cache
157
163
# cache-from: type=local,src=/tmp/.buildx-cache
164
+ # using registry cache (no storage limit)
165
+ cache-from : type=registry,ref=${{ steps.tag.outputs.cache_output_tags }}
166
+ cache-to : type=registry,ref=${{ steps.tag.outputs.cache_output_tags }},mode=max
158
167
159
168
- name : Build and push Server Docker image (tagged + versioned)
160
169
if : ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && matrix.config.server == true }}
@@ -169,11 +178,14 @@ jobs:
169
178
target : server
170
179
provenance : false
171
180
# using github experimental cache
172
- cache-from : type=gha
173
- cache-to : type=gha,mode=max
181
+ # cache-from: type=gha
182
+ # cache-to: type=gha,mode=max
174
183
# return to this if the experimental github cache is having issues
175
184
# cache-to: type=local,dest=/tmp/.buildx-cache
176
185
# cache-from: type=local,src=/tmp/.buildx-cache
186
+ # using registry cache (no storage limit)
187
+ cache-from : type=registry,ref=${{ steps.tag.outputs.cache_output_tags }}
188
+ cache-to : type=registry,ref=${{ steps.tag.outputs.cache_output_tags }},mode=max
177
189
178
190
create_tag :
179
191
name : Create and push git tag
0 commit comments