ci-automation/release.sh: use rclone docker image

rclone was previously called from the Mantle image but it's not the
 case anymore because we need some environment variables (CHANNEL, ARCH,
 etc.)

 Let's switch to the `rclone` Docker image.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
Mathieu Tortuyaux 2025-10-21 15:44:50 +02:00
parent eb1c6c2438
commit a55adb1287
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8

View File

@ -167,9 +167,12 @@ function copy_from_bincache_to_bucket() {
echo "Experimental (i.e ignore if it fails) - copy the images to CloudFlare bucket" echo "Experimental (i.e ignore if it fails) - copy the images to CloudFlare bucket"
( (
set +eu set +eu
rclone --config "${RCLONE_CONFIGURATION_FILE}" \ docker run --rm -ti \
sync \ -v "${RCLONE_CONFIGURATION_FILE}:/opt/rclone.conf:ro" \
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}" docker.io/rclone/rclone:1.71.1 \
--config "/opt/rclone.conf" \
sync \
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}"
# Exit the function cleanly for now: # Exit the function cleanly for now:
true true
) )