@Tema Thanks for your patience! Based on the internal discussion, it seems that passing a secret that is only available at build time directly through the GitHub action is not feasible. Instead, the recommended approach is to build and push the image in a separate step and then pass the image to the action using imageToDeploy
.
This is the guidance for injecting build time secrets: https://docs.docker.com/reference/dockerfile/#run---mounttypesecret
The GitHub action does support passing buildArguments, but they're not recommended for secrets.
do let me know incase of further queries, I would be happy to assist you.