I tried to build pipeline using GitLab for deploy on Google Cloud.
Everything works fine, except the gcloud command for deploy.
I have the following error : ERROR: (gcloud.run.deploy) PERMISSION_DENIED: Permission 'iam.serviceaccounts.actAs' denied on service account [email protected] (or it may not exist)
I searched for a solution in stack overflow and added 'iam.serviceaccounts.actAs' using gcloud command : gcloud projects add-iam-policy-binding YYYYY --member='serviceAccount:[email protected]' --role='roles/iam.serviceAccountUser'
The role is added to the service account, but the deploy still fail.
Any idea ?