Skip to content

Commit 778b106

Browse files
committed
release: sync alpha bincache assets to s3 bucket
Signed-off-by: Mathieu Tortuyaux <[email protected]>
1 parent 1a65456 commit 778b106

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ci-automation/release.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ function _inside_mantle() {
157157
)
158158
}
159159

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+
160169
function publish_sdk() {
161170
local docker_sdk_vernum="$1"
162171
local sdk_name=""
@@ -217,6 +226,11 @@ function _release_build_impl() {
217226
echo "===="
218227
echo "Done, now you can copy the images to Origin"
219228
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+
220234
# Future: trigger copy to Origin in a secure way
221235
# Future: trigger update payload signing
222236
# Future: trigger website update

0 commit comments

Comments
 (0)