Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Conversation

@hferentschik
Copy link

This ensures the BALENA_API_KEY is injected into the container and start.sh can successfully set the EUI tag.

Without the label, BALENA_API_KEY is not available in the container and the script logs a parse error originating from this line where BALENA_API_KEY will be empty.

ID=$(curl -sX GET "https://api.balena-cloud.com/v5/device?\$filter=uuid%20eq%20'$BALENA_DEVICE_UUID'" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $BALENA_API_KEY" | \
jq ".d | .[0] | .id")

@mpous mpous merged commit 04a95fe into mpous:master Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants