mirror of
https://github.com/balena-io/open-balena.git
synced 2024-12-24 07:46:39 +00:00
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:
commit
43b076a9df
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
# renovate: datasource=github-releases depName=balena-io/balena-cli
|
# 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 \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
bash \
|
bash \
|
||||||
|
@ -164,7 +164,7 @@ function check_device_status() {
|
|||||||
balena_device_uuid="$(cat </balena/config.json | jq -r .uuid)"
|
balena_device_uuid="$(cat </balena/config.json | jq -r .uuid)"
|
||||||
|
|
||||||
if [[ -n $balena_device_uuid ]]; then
|
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')"
|
| jq -r --arg uuid "${balena_device_uuid}" '.[] | select(.uuid==$uuid).is_online == true')"
|
||||||
|
|
||||||
if [[ $is_online =~ true ]]; then
|
if [[ $is_online =~ true ]]; then
|
||||||
@ -208,23 +208,21 @@ function deploy_release() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_releases() {
|
function get_releases() {
|
||||||
with_backoff balena releases --json "${TEST_FLEET}"
|
with_backoff balena release list --json "${TEST_FLEET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_release_commit() {
|
function get_release_commit() {
|
||||||
get_releases | jq -re \
|
get_releases | jq -re \
|
||||||
'select((.[].status=="success")
|
'[.[] | select((.status=="success")
|
||||||
and (.[].is_invalidated==false)
|
and (.is_invalidated==false)
|
||||||
and (.[].is_final==true)
|
and (.is_final==true))][0].commit'
|
||||||
and (.[].release_type=="final"))[0].commit'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_release_id() {
|
function get_release_id() {
|
||||||
get_releases | jq -re \
|
get_releases | jq -re \
|
||||||
'select((.[].status=="success")
|
'[.[] | select((.status=="success")
|
||||||
and (.[].is_invalidated==false)
|
and (.is_invalidated==false)
|
||||||
and (.[].is_final==true)
|
and (.is_final==true))][0].id'
|
||||||
and (.[].release_type=="final"))[0].id'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function supervisor_update_target_state() {
|
function supervisor_update_target_state() {
|
||||||
|
Loading…
Reference in New Issue
Block a user