offline_signing: update version in canary channel after upload

if a canary channel is specified.
This commit is contained in:
Benjamin Gilbert 2017-09-06 14:48:53 -07:00
parent 97ab652443
commit 733a206a95

View File

@ -49,6 +49,19 @@ upload() {
--board="${board}" \
--version="${version}" \
--payload="${payload}"
# Update version in a canary channel if one is defined.
local -n canary_channel="ROLLER_CANARY_CHANNEL_${channel^^}"
if [[ -n "${canary_channel}" ]]; then
updateservicectl \
--server="https://public.update.core-os.net" \
--user="${ROLLER_USERNAME}" \
--key="${ROLLER_API_KEY}" \
channel update \
--app-id="${appid[${board}]}" \
--channel="${canary_channel}" \
--version="${version}"
fi
}
usage() {