Skip to content

Commit a55adb1

Browse files
committed
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 <[email protected]>
1 parent eb1c6c2 commit a55adb1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ci-automation/release.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,12 @@ function copy_from_bincache_to_bucket() {
167167
echo "Experimental (i.e ignore if it fails) - copy the images to CloudFlare bucket"
168168
(
169169
set +eu
170-
rclone --config "${RCLONE_CONFIGURATION_FILE}" \
171-
sync \
172-
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}"
170+
docker run --rm -ti \
171+
-v "${RCLONE_CONFIGURATION_FILE}:/opt/rclone.conf:ro" \
172+
docker.io/rclone/rclone:1.71.1 \
173+
--config "/opt/rclone.conf" \
174+
sync \
175+
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}"
173176
# Exit the function cleanly for now:
174177
true
175178
)

0 commit comments

Comments
 (0)