Bake release version semver into images as environment variable

It would be good to have a BALENA_RELEASE_SEMVER environment variable, like we already have for the commit of the release, and for the HostOS and supervisor’s versions (e.g.: BALENA_HOST_OS_VERSION=balenaOS 5.3.7)

In order to get the semver of a release from within a running container, it is necessary to do a first call to the supervisor API to retrieve the releaseId (this requires label io.balena.features.supervisor-api), and a second call to balena api with this number in order to get the raw_version semver.

The process is explained in this thread: