mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
offline_signing: update version in canary channel after upload
if a canary channel is specified.
This commit is contained in:
parent
97ab652443
commit
733a206a95
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user