Simple explanation for publishing of addon

I have made an addon that works well so far, but I am kind-of stuck at det publshing part of the tutorial.

https://developers.home-assistant.io/docs/add-ons/publishing

I have a git repository for the addon and it installs fine from there: https://github.com/corvy/ha-addons. Now I want to build the containers and I have removed the comment for image in config.yaml like instructed. I installed docker desktop and that works well. Also did a clone of the builder rep even though I think that is not needed.

And now I am stuck here:

builder> docker run --rm --privileged -v ~/.docker:/root/.docker homeassistant/amd64-builder --all -t addon-folder -r https://github.com/corvy/ha-addons -b main
[16:35:21] INFO: Setup crosscompiling feature
[16:35:22] WARNING: Can't enable crosscompiling feature
[16:35:22] INFO: Starting docker.
[16:35:22] INFO: Waiting for docker to initialize...
[16:35:23] INFO: Docker was initialized
[16:35:23] INFO: Checkout repository https://github.com/corvy/ha-addons
[16:35:24] INFO: Run addon build for: armhf armv7 amd64 i386 aarch64
jq: error: Could not open file /tmp/build_config/config.json: No such file or directory
jq: error: Could not open file /tmp/build_config/config.json: No such file or directory
jq: error: Could not open file /tmp/build_config/config.json: No such file or directory
jq: error: Could not open file /tmp/build_config/config.json: No such file or directory
jq: error: Could not open file /tmp/build_config/config.json: No such file or directory

What am I doing wrong? I run a windows 11 machine with a i9 CPU, WSL installed. (same result inside WSL for that matter) Is there anyway someone could explain the steps to compile and upload the images in a more detailed way so I understand it? I feel that the example linked above has some errors or maybe I am just not getting it…

Any help appreciated!

Somehow I fixed it!

I ran this from the folder where I have the local git checkout of my addon-rep and point to the addon with ./ha-addons/gpsd2mqtt. And I use sock … but in reality I am not sure why this works. But at least it does!

#docker run --rm --privileged -v ~/.docker:/root/.docker -v /var/run/docker.sock:/var/run/docker.sock:ro -v ./ha-addons/gpsd2mqtt:/data homeassistant/amd64-builder -b main --all -t /data