mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
core_promote: upload gce image name to private build bucket
The build bucket should now be writable anyone performing releases, allowing us to ensure that the original build and public buckets are exactly in sync.
This commit is contained in:
parent
55c8835f3c
commit
c0139769dc
12
core_promote
12
core_promote
@ -87,13 +87,6 @@ if [[ ${FLAGS_do_roller} -eq ${FLAGS_TRUE} ]]; then
|
|||||||
--publish=true
|
--publish=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]]; then
|
|
||||||
# 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
|
if [[ ${FLAGS_do_gce} -eq ${FLAGS_TRUE} ]]; then
|
||||||
gce_name="coreos-${lower_channel}-${FLAGS_version//./-}-v$(date -u +%Y%m%d)"
|
gce_name="coreos-${lower_channel}-${FLAGS_version//./-}-v$(date -u +%Y%m%d)"
|
||||||
# description must be of the format "Vendor, OS, Version, Description"
|
# description must be of the format "Vendor, OS, Version, Description"
|
||||||
@ -108,7 +101,7 @@ if [[ ${FLAGS_do_gce} -eq ${FLAGS_TRUE} ]]; then
|
|||||||
gce_temp=$(mktemp --suffix=.txt)
|
gce_temp=$(mktemp --suffix=.txt)
|
||||||
trap "rm -f '${gce_temp}'" EXIT
|
trap "rm -f '${gce_temp}'" EXIT
|
||||||
echo "${gce_path}" > "${gce_temp}"
|
echo "${gce_path}" > "${gce_temp}"
|
||||||
gsutil cp "${gce_temp}" "${gs_release}/coreos_production_gce.txt"
|
gsutil cp "${gce_temp}" "${gs_build}/coreos_production_gce.txt"
|
||||||
rm -f "${gce_temp}"
|
rm -f "${gce_temp}"
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
|
|
||||||
@ -127,7 +120,8 @@ 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 rsync -d "${gs_release}/" "${gs_current}/"
|
gsutil -m rsync -d "${gs_build}/" "${gs_release}/"
|
||||||
|
gsutil -m rsync -d "${gs_build}/" "${gs_current}/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]] && \
|
if [[ ${FLAGS_do_storage} -eq ${FLAGS_TRUE} ]] && \
|
||||||
|
Loading…
Reference in New Issue
Block a user