mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-14 15:12:03 +01:00
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 <kailuke@microsoft.com>
This commit is contained in:
parent
28cf73c46e
commit
e9e70ced98
@ -170,12 +170,12 @@ function copy_from_bincache_to_bucket() {
|
|||||||
echo "${RCLONE_CONFIGURATION_FILE}" | base64 --decode > "${rclone_configuration_file}"
|
echo "${RCLONE_CONFIGURATION_FILE}" | base64 --decode > "${rclone_configuration_file}"
|
||||||
|
|
||||||
echo "Copying the images from bincache to CloudFlare bucket"
|
echo "Copying the images from bincache to CloudFlare bucket"
|
||||||
docker run --rm \
|
docker run --rm --net host \
|
||||||
-v "${rclone_configuration_file}:/opt/rclone.conf:ro" \
|
-v "${rclone_configuration_file}:/opt/rclone.conf:ro" \
|
||||||
docker.io/rclone/rclone:1.71.1 \
|
docker.io/rclone/rclone:1.71.1 \
|
||||||
--config "/opt/rclone.conf" \
|
--config "/opt/rclone.conf" \
|
||||||
sync \
|
sync \
|
||||||
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}"
|
--http-url "https://${BUILDCACHE_SERVER}/images/${arch}/${version}" :http: "r2:flatcar/${channel}/${arch}-usr/${version}" || { echo "ERROR: Skipping bucket copy due to failure" ; }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user