I am trying to set the release version via the balena.yml version property.
this did work once or twice but since then it never did again.
even simple, definitely semver compliant versions like 2.2.2 are shown as 0.0.0-1759527711929 in the dashboard. im pulling my hair on this one.
Which ones are you referring to exactly? As described in my issue: I did create a balena.yml file with a version property which follows semver versioning.
So to my understanding: yes I did follow the instructions
feel free to check out my ci/cd pipelines to understand how my deployments work… maybe i have a stupid mistake…
this ones for PR’s: (i would understand if they dont work since i not only set a version but also a prerelease name, maybe thats interfering with the internal incremental preversion number of balena)
this one for nightly releases (essentially the same but a static prerelease name)
and this one for actual releases (no prerelease name, only version number, but still not working)
Pushing the exact same content of your balena.yml yielded the message “The balena.yml version field must be a valid semver (eg: 1.0.0). Please update your balena.yml or use the Dashboard to update the release version.”
However, removing the single quotes seemed to work.
@yuriploc can you provide the exact command that you are using during your push and if you are using the balena-cli for that also clarify the version that you are on so that we can try to reproduce more accurately?
Silly question, but I wanted to double check with you whether the balena.yml with the version is at the same folder from which you are initiating the push or not.
Another thing that could give us more clues would be if your run the following command in your browser console while viewing our dashboard and share the results:
await sdk.models.release.get(<the id of the created release here>, {
$select: ['id', 'raw_version', 'release_version']
})