mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 06:56:58 +02:00
Merge pull request #501 from marineam/rsync
core_promote: switch from gsutil cp to rsync
This commit is contained in:
commit
06485872b0
13
core_promote
13
core_promote
@ -88,7 +88,10 @@ if [[ ${FLAGS_do_roller} -eq ${FLAGS_TRUE} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]]; then
|
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
|
fi
|
||||||
|
|
||||||
if [[ ${FLAGS_do_gce} -eq ${FLAGS_TRUE} ]]; then
|
if [[ ${FLAGS_do_gce} -eq ${FLAGS_TRUE} ]]; then
|
||||||
@ -124,19 +127,19 @@ if [[ ${FLAGS_do_gce} -eq ${FLAGS_TRUE} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]]; then
|
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]]; then
|
||||||
gsutil -m cp "${gs_release}/*" "${gs_current}/"
|
gsutil -m rsync -d "${gs_release}/" "${gs_current}/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]] && \
|
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]] && \
|
||||||
[[ -n "${FLAGS_legacy_storage}" ]]
|
[[ -n "${FLAGS_legacy_storage}" ]]
|
||||||
then
|
then
|
||||||
if [[ "${lower_channel}" == alpha ]]; then
|
if [[ "${lower_channel}" == alpha ]]; then
|
||||||
gsutil -m cp "${gs_release}/*" \
|
gsutil -m rsync -d "${gs_release}/" \
|
||||||
"${FLAGS_legacy_storage}/${FLAGS_board}/${FLAGS_version}/"
|
"${FLAGS_legacy_storage}/${FLAGS_board}/${FLAGS_version}/"
|
||||||
gsutil -m cp "${gs_current}/*" \
|
gsutil -m rsync -d "${gs_current}/" \
|
||||||
"${FLAGS_legacy_storage}/${FLAGS_board}/alpha/"
|
"${FLAGS_legacy_storage}/${FLAGS_board}/alpha/"
|
||||||
elif [[ "${lower_channel}" == beta ]]; then
|
elif [[ "${lower_channel}" == beta ]]; then
|
||||||
gsutil -m cp "${gs_current}/*" \
|
gsutil -m rsync -d "${gs_current}/" \
|
||||||
"${FLAGS_legacy_storage}/${FLAGS_board}/beta/"
|
"${FLAGS_legacy_storage}/${FLAGS_board}/beta/"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user