Merge pull request #485 from balena-io/renovate/balena-io-balena-cli-20.x

Update dependency balena-io/balena-cli to v20
This commit is contained in:
Anton Belodedenko 2024-11-11 09:31:26 -08:00 committed by GitHub
commit 43b076a9df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 11 deletions

View File

@ -1,7 +1,7 @@
FROM ubuntu:24.04
# renovate: datasource=github-releases depName=balena-io/balena-cli
ARG BALENA_CLI_VERSION=v19.14.0
ARG BALENA_CLI_VERSION=v20.0.6
RUN apt-get update && apt-get install -y --no-install-recommends \
bash \

View File

@ -164,7 +164,7 @@ function check_device_status() {
balena_device_uuid="$(cat </balena/config.json | jq -r .uuid)"
if [[ -n $balena_device_uuid ]]; then
is_online="$(balena devices --json --fleet "${TEST_FLEET}" \
is_online="$(balena device list --json --fleet "${TEST_FLEET}" \
| jq -r --arg uuid "${balena_device_uuid}" '.[] | select(.uuid==$uuid).is_online == true')"
if [[ $is_online =~ true ]]; then
@ -208,23 +208,21 @@ function deploy_release() {
}
function get_releases() {
with_backoff balena releases --json "${TEST_FLEET}"
with_backoff balena release list --json "${TEST_FLEET}"
}
function get_release_commit() {
get_releases | jq -re \
'select((.[].status=="success")
and (.[].is_invalidated==false)
and (.[].is_final==true)
and (.[].release_type=="final"))[0].commit'
'[.[] | select((.status=="success")
and (.is_invalidated==false)
and (.is_final==true))][0].commit'
}
function get_release_id() {
get_releases | jq -re \
'select((.[].status=="success")
and (.[].is_invalidated==false)
and (.[].is_final==true)
and (.[].release_type=="final"))[0].id'
'[.[] | select((.status=="success")
and (.is_invalidated==false)
and (.is_final==true))][0].id'
}
function supervisor_update_target_state() {