Docker build secrets not visible in /run/secrets when set through the Dagger CLI
Do not rely on the CLI-set secret name. Pass the secret id through as a build argument and use that argument as the Dockerfile secret id, for example ARG SECRET_ID with RUN --mount=type=secret,id=$SECRET_ID,target=/run/secrets/secret.txt. This was answered by a Dagger contributor and confirmed working by the reporter,…
Problem outcome: unknown