Getting the secret from /run/secrets/

While building the docker image I have the following error

cat: run/secrets/my_token: No such file or directory

When I run the RUN cat run/secrets/my_token | ... in my Dockerfile.

I have the following directory inside .balena folder.

.
├── balena.yml
└── secrets
    └── secret_token

and balena.yml has the following content:

build-secrets:
    global:
        - source: secret_token
          dest: my_token

I followed the documentation %100 as I could understand. I don’t know why I still have the problem and there is not any discussion about this on the web.

Hello @Mc1 thanks for your message and apologizes for the long delay answering your message.

Also thank you for clarifying that you followed this step-by-step Deploy to your fleet - Balena Documentation

Could you please confirm that your secrets tree looks like:

.
├── docker-compose.yml
├── .balena
│   ├── balena.yml
│   └── secrets
│       ├── secret_token