Skip to content

Commit

Permalink
debug release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
ab77 committed May 27, 2024
1 parent 2d30d30 commit 2c89a64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/balena-tests/balena.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,13 @@ function upload_release_asset() {
if [[ "$RELEASE_ASSETS_TEST" =~ true ]]; then
local release_id
release_id=${1:-1}
release_asset="$(find / -type f -name '*.png' | head -n 1)"

curl ${curl_opts} "https://api.${DNS_TLD}/resin/release_asset" \
--header "Authorization: Bearer $(cat <~/.balena/token)" \
--form 'asset=@/balena/balena.img' \
--form "asset=@${release_asset}" \
--form "release=${release_id}" \
--form "asset_key=balena-$((RANDOM)).img" \
--form "asset_key=${release_asset}-$((RANDOM))" \
| jq -re .asset.href \
| xargs curl ${curl_opts} -o "/tmp/logo-$((RANDOM)).png"
fi
Expand Down

0 comments on commit 2c89a64

Please sign in to comment.