mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
core_promote: switch from gsutil cp to rsync
This commit is contained in:
parent
bba9413c8d
commit
bc4b774610
13
core_promote
13
core_promote
@ -88,7 +88,10 @@ if [[ ${FLAGS_do_roller} -eq ${FLAGS_TRUE} ]]; then
|
||||
fi
|
||||
|
||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]]; then
|
||||
gsutil -m cp "${gs_build}/*" "${gs_release}/"
|
||||
# note: do not use the delete (-d) flag here since this script uploads
|
||||
# coreos_production_gce.txt to $gs_release but not $gs_build.
|
||||
# TODO: maybe fix that ;-)
|
||||
gsutil -m rsync "${gs_build}/" "${gs_release}/"
|
||||
fi
|
||||
|
||||
if [[ ${FLAGS_do_gce} -eq ${FLAGS_TRUE} ]]; then
|
||||
@ -124,19 +127,19 @@ if [[ ${FLAGS_do_gce} -eq ${FLAGS_TRUE} ]]; then
|
||||
fi
|
||||
|
||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]]; then
|
||||
gsutil -m cp "${gs_release}/*" "${gs_current}/"
|
||||
gsutil -m rsync -d "${gs_release}/" "${gs_current}/"
|
||||
fi
|
||||
|
||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]] && \
|
||||
[[ -n "${FLAGS_legacy_storage}" ]]
|
||||
then
|
||||
if [[ "${lower_channel}" == alpha ]]; then
|
||||
gsutil -m cp "${gs_release}/*" \
|
||||
gsutil -m rsync -d "${gs_release}/" \
|
||||
"${FLAGS_legacy_storage}/${FLAGS_board}/${FLAGS_version}/"
|
||||
gsutil -m cp "${gs_current}/*" \
|
||||
gsutil -m rsync -d "${gs_current}/" \
|
||||
"${FLAGS_legacy_storage}/${FLAGS_board}/alpha/"
|
||||
elif [[ "${lower_channel}" == beta ]]; then
|
||||
gsutil -m cp "${gs_current}/*" \
|
||||
gsutil -m rsync -d "${gs_current}/" \
|
||||
"${FLAGS_legacy_storage}/${FLAGS_board}/beta/"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user