Tcb-builder build - provisioning for online updates

UPDATE

Oh wait I think I see the issue!

Notice the difference in our output sections:

output:
  easy-installer:
    local: my-base-<VERSION>-ap-secure
    name: "my-base-<VERSION>-ap-secure"
    description: "my OS base image"
  provisioning:
    mode: "online"
    shared-data: shared-data.tar.gz
    online-data: <ONLINE_DATA_STRING>

versus:

output:
  easy-installer:
    local: foo
    name: "bar"
    description: "foobar"
    provisioning:
      mode: "online"
      shared-data: "shared-data.tar.gz"
      online-data: "<SECRET>"

In my case I had the provisioning section indented an extra level. This is the intended format. I modified my file to be like yours where the extra indent level is not there. Surprisingly the build command still completes without error, but it produces an output file without the provisioning data. This seems to be a bug as the tool should throw an error if the format is not correct.

Please change your tcbuild.yml file to reflect mine with the extra indent on provisioning: and see if that helps.

Best Regards,
Jeremias

1 Like