File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,15 @@ function _inside_mantle() {
157
157
)
158
158
}
159
159
160
+ function copy_from_bincache_to_bucket() {
161
+ local channel=" ${1} "
162
+ local arch=" ${2} "
163
+ local version=" ${3} "
164
+
165
+ # TODO: Add 'r2' configuration as secret.
166
+ rclone sync --progress --http-url " https://${BUILDCACHE_SERVER} /${arch} /${version} " :http: " r2:flatcar/${channel} /${arch} /${version} "
167
+ }
168
+
160
169
function publish_sdk() {
161
170
local docker_sdk_vernum=" $1 "
162
171
local sdk_name=" "
@@ -217,6 +226,11 @@ function _release_build_impl() {
217
226
echo " ===="
218
227
echo " Done, now you can copy the images to Origin"
219
228
echo " ===="
229
+
230
+ echo " Experimental (i.e ignore if it fails) - copy the images to CloudFlare bucket for Alpha channel"
231
+ [[ " ${CHANNEL} " != " alpha" ]] && exit 0
232
+ copy_from_bincache_to_bucket " ${CHANNEL} " " ${arch} " " ${vernum} "
233
+
220
234
# Future: trigger copy to Origin in a secure way
221
235
# Future: trigger update payload signing
222
236
# Future: trigger website update
You can’t perform that action at this time.
0 commit comments