Hey everyone,
I have secrets that are used during build-time to libraries, where I need to be authenticated. I wanted to use the CLI v9.6.0 where the help seems to make this possible via balena deploy -B 'ACCESS_KEY=secret' ...
.
But I only receive an error that it is not possible because the build is unauthenticated. So it seems to me that the buildArg does not get forwarded. Verbose logging doesn’t give a hint since it does not show any output from stdout.
Am I missing something or does anyone know a workaround? Every hint is appreciated.
Thanks in advance
David
Concerning the workflow/steps-to-reproduce:
$ balena deploy --nocache -B 'ACCESS_KEY=secret' <appName>
docker-compose Snippet:
...
module1:
build:
context: module1/
args:
- ACCESS_KEY
...
Dockerfile Snippet:
...
ARG ACCESS_KEY
...
RUN <...> $ACCESS_KEY
...