I would like using Torizon IDE Extension to push m7-firmware to Torizon Cloud, as described here.
So I created anew task, based on the existing tcb-platform-push-ostree
.
{
"label": "tcb-platform-push-m7-firmware",
"detail": "Run the torizoncore-builder platform push command to torizon.io cloud - m7-firmware",
"command": "DOCKER_HOST=",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"env": {
"VSCODE_CMD": "--verbose platform push --credentials credentials.zip --hardwareid cortex-firmware --package-name demo-firmware --package-version 0.0.1 ./my-firmware.bin"
}
},
"args": [
"source",
"./.conf/tcb-env-setup.sh",
"-s",
"${workspaceFolder}/storage",
"-t",
"${config:tcb.version}"
],
"problemMatcher": [
"$tsc"
],
"dependsOrder": "sequence",
"dependsOn": [
"tcb-unpack"
],
"icon": {
"id": "cloud-upload",
"color": "terminal.ansiYellow"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"group": "cloud-related"
}
},
Running it I get the following error:
An unexpected Exception occurred. Please provide the following stack trace to
the Toradex TorizonCore support team:
Traceback (most recent call last):
File "/builder/torizoncore-builder", line 230, in <module>
mainargs.func(mainargs)
File "/builder/tcbuilder/cli/platform.py", line 584, in do_platform_push
platform.push_ref(
File "/builder/tcbuilder/backend/platform.py", line 1035, in push_ref
commit = repo.read_commit(ref).out_commit
gi.repository.GLib.GError: g-io-error-quark: Invalid refspec ./my-firmware.bin (0)