Skip to content

Commit 71b53fc

Browse files
committed
ci-automation/release.sh: Skip bucket copy on failure until it works
We got a DNS resolution problem due to UDP packets not going to the configured server. For now try the host network (and otherwise maybe a custom DNS server?). But in any case we should not block the release on that and continue. Signed-off-by: Kai Lueke <[email protected]>
1 parent cc4903c commit 71b53fc

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)