Skip to content

[wip] release: sync alpha bincache assets to s3 bucket #3181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ci-automation/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ function _inside_mantle() {
)
}

function copy_from_bincache_to_bucket() {
local channel="${1}"
local arch="${2}"
local version="${3}"

# TODO: Add 'r2' configuration as secret.
rclone sync --progress --http-url "https://${BUILDCACHE_SERVER}/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}/${version}"
}

function publish_sdk() {
local docker_sdk_vernum="$1"
local sdk_name=""
Expand Down Expand Up @@ -217,6 +226,11 @@ function _release_build_impl() {
echo "===="
echo "Done, now you can copy the images to Origin"
echo "===="

echo "Experimental (i.e ignore if it fails) - copy the images to CloudFlare bucket for Alpha channel"
[[ "${CHANNEL}" != "alpha" ]] && exit 0
copy_from_bincache_to_bucket "${CHANNEL}" "${arch}" "${vernum}"

# Future: trigger copy to Origin in a secure way
# Future: trigger update payload signing
# Future: trigger website update
Expand Down