Skip to content

Commit b1ba1c8

Browse files
authored
Merge pull request #3481 from flatcar/kai/release-bucket-failure
ci-automation/release.sh: Skip bucket copy on failure until it works
2 parents 28cf73c + e9e70ce commit b1ba1c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci-automation/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ function copy_from_bincache_to_bucket() {
170170
echo "${RCLONE_CONFIGURATION_FILE}" | base64 --decode > "${rclone_configuration_file}"
171171

172172
echo "Copying the images from bincache to CloudFlare bucket"
173-
docker run --rm \
173+
docker run --rm --net host \
174174
-v "${rclone_configuration_file}:/opt/rclone.conf:ro" \
175175
docker.io/rclone/rclone:1.71.1 \
176176
--config "/opt/rclone.conf" \
177177
sync \
178-
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}"
178+
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}" || { echo "ERROR: Skipping bucket copy due to failure" ; }
179179
)
180180
}
181181

0 commit comments

Comments
 (0)