problems building balenaOS on gitlab CI

Hi,

I am having some problems running the gitlab ci to build a balenaOS image for intel nuc, here is my CI and I am running it on branch v2.73.15+rev3. Any suggestion?

testbuild:
  image: resin/yocto-build-env
  cache:
    key: one-key-to-rule-them-all
    paths:
      - cache/
  services:
    - docker:dind
  stage: build
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
    #DOCKER_DRIVER: overlay2
  script:
    - |
      if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
        tag=""
        echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
      else
        tag=":$CI_COMMIT_REF_SLUG"
        echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
      fi
    - docker daemon 2> /dev/null &
    - mkdir -p /builds/lb/iot/build_environments/balena-intel/cache/yocto-shared
    - useradd -g users -G docker -m builder
    - chown -R builder /builds/
    - chmod 777 /var/run/docker.sock
    - docker ps
    - |
      sudo -H -i -u builder bash -e -x << EOS
      umask 022
      docker ps
      /builds/lb/iot/build_environments/balena-intel/balena-yocto-scripts/build/barys --shared-downloads /builds/lb/iot/build_environments/balena-intel/cache/yocto-shared/shared-downloads/ --shared-sstate /builds/lb/iot/build_environments/balena-intel/cache/yocto-shared/shared-sstate/ -m genericx86-64 || true
      EOS
| install: cannot stat '/builds/lb/iot/build_environments/balena-intel/build/tmp/work/genericx86_64-poky-linux/docker-disk/balena_amd64-supervisor-v12.5.10-r0/build/balena-healthcheck-image.tar': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/builds/lb/iot/build_environments/balena-intel/build/tmp/work/genericx86_64-poky-linux/docker-disk/balena_amd64-supervisor-v12.5.10-r0/temp/run.do_install.2265068' failed with exit code 1:
| install: cannot stat '/builds/lb/iot/build_environments/balena-intel/build/tmp/work/genericx86_64-poky-linux/docker-disk/balena_amd64-supervisor-v12.5.10-r0/build/balena-healthcheck-image.tar': No such file or directory
| WARNING: exit code 1 from a shell command.
| 
NOTE: recipe docker-disk-balena_amd64-supervisor-v12.5.10-r0: task do_install: Failed
ERROR: Task (/builds/lb/iot/build_environments/balena-intel/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_install) failed with exit code '1'

Same for v2.68.1

my bad, dind service wasn’t sharing /build dir with the host. Now works perfectly

Hi, are you able to elaborate on what exactly needs to be done?
I’m also trying to build a balena-image inside a docker container and seeing this error.