transfer.sh: use update-percent in updateservicectl calls

This commit is contained in:
Stephen Demos 2018-04-23 11:16:32 -07:00
parent bca1b0caa9
commit fd4fce0e7b
No known key found for this signature in database
GPG Key ID: 0CD0BA970CA0F122

View File

@ -99,7 +99,8 @@ roll() {
local board="$3" local board="$3"
# Only ramp rollouts on AMD64; ARM64 is too small # Only ramp rollouts on AMD64; ARM64 is too small
if [[ "$board" = "amd64-usr" ]]; then if [[ "$board" = "arm64-usr" ]]; then
echo "Setting rollout for arm64-usr to 100%"
updateservicectl \ updateservicectl \
--server="https://public.update.core-os.net" \ --server="https://public.update.core-os.net" \
--user="${ROLLER_USERNAME}" \ --user="${ROLLER_USERNAME}" \
@ -107,8 +108,18 @@ roll() {
group update \ group update \
--app-id="${APPID[${board}]}" \ --app-id="${APPID[${board}]}" \
--group-id="${channel}" \ --group-id="${channel}" \
--update-count=3 \ --update-percent=100
--update-interval=60 else
# TODO(sdemos): update this behavior when rollout strategies land in roller
echo "Rollout set to 0%"
updateservicectl \
--server="https://public.update.core-os.net" \
--user="${ROLLER_USERNAME}" \
--key="${ROLLER_API_KEY}" \
group update \
--app-id="${APPID[${board}]}" \
--group-id="${channel}" \
--update-percent=0
fi fi
# FIXME(bgilbert): We set --publish=true because there's no way to # FIXME(bgilbert): We set --publish=true because there's no way to