Skip to content

Commit 1f76110

Browse files
authored
Merge pull request #3410 from flatcar/tormath1/rclone
ci-automation/release.sh: use rclone docker image
2 parents 9ecfadf + d333b4e commit 1f76110

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

ci-automation/release.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,13 @@ function copy_from_bincache_to_bucket() {
164164
local arch="${2}"
165165
local version="${3}"
166166

167-
echo "Experimental (i.e ignore if it fails) - copy the images to CloudFlare bucket"
168-
(
169-
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}"
173-
# Exit the function cleanly for now:
174-
true
175-
)
167+
echo "Copy the images from bincache to CloudFlare bucket"
168+
docker run --rm -ti \
169+
-v "${RCLONE_CONFIGURATION_FILE}:/opt/rclone.conf:ro" \
170+
docker.io/rclone/rclone:1.71.1 \
171+
--config "/opt/rclone.conf" \
172+
sync \
173+
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}"
176174
# Note: There is no "current" symlink and when switching the release to current we
177175
# could at a later stage (when the update payloads are selected in Nebraska) either
178176
# use folder copies where we delete the old "current" folder first, or we could

0 commit comments

Comments
 (0)