File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ function _inside_mantle() {
91
91
secret_to_file gcp_json_key_path " ${GCP_JSON_KEY} "
92
92
google_release_credentials_file=" "
93
93
secret_to_file google_release_credentials_file " ${GOOGLE_RELEASE_CREDENTIALS} "
94
+ rclone_configuration_file=" "
95
+ secret_to_file rclone_configuration_file " ${RCLONE_CONFIGURATION_FILE} "
94
96
95
97
for platform in aws azure; do
96
98
for arch in amd64 arm64; do
@@ -157,6 +159,16 @@ function _inside_mantle() {
157
159
)
158
160
}
159
161
162
+ function copy_from_bincache_to_bucket() {
163
+ local channel=" ${1} "
164
+ local arch=" ${2} "
165
+ local version=" ${3} "
166
+
167
+ rclone --config " ${RCLONE_CONFIGURATION_FILE} " \
168
+ sync \
169
+ --http-url " https://${BUILDCACHE_SERVER} /images/${arch} /${version} " :http: " r2:flatcar/${channel} /${arch} /${version} "
170
+ }
171
+
160
172
function publish_sdk() {
161
173
local docker_sdk_vernum=" $1 "
162
174
local sdk_name=" "
@@ -217,6 +229,11 @@ function _release_build_impl() {
217
229
echo " ===="
218
230
echo " Done, now you can copy the images to Origin"
219
231
echo " ===="
232
+
233
+ echo " Experimental (i.e ignore if it fails) - copy the images to CloudFlare bucket for Alpha channel"
234
+ [[ " ${CHANNEL} " != " alpha" ]] && exit 0
235
+ copy_from_bincache_to_bucket " ${CHANNEL} " " ${arch} " " ${vernum} "
236
+
220
237
# Future: trigger copy to Origin in a secure way
221
238
# Future: trigger update payload signing
222
239
# Future: trigger website update
You can’t perform that action at this time.
0 commit comments