Merge pull request #508 from marineam/dist

core_promote: upload gce image name to private build bucket
This commit is contained in:
Michael Marineau 2016-03-09 13:45:07 -08:00
commit d723eebe45

View File

@ -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} ]] && \