I try to deploy my Cloud Function on every push on my Github repository which is connected to a gen 1 function using a trigger, but every time I get the same error,
Hi @ferdzo,
Welcome to Google Cloud Community!
You may want to check first if Cloud Functions Developer role is set to Enabled. reference
Please check if cloudbuild.yaml
is properly setup. Please check this link for your reference.
Finally, please check this blog post as well as this includes steps in deploying Google Cloud Functions using Cloud Build when changes get pushed to Github repo.
Hope this helps.