akauppi / GroundLevel-firebase-es

[ANCHORED] Stencil for operational web apps
https://groundlevel-sep22.web.app/
Other
23 stars 3 forks source link

Finish the CI/CD #39

Closed akauppi closed 3 years ago

akauppi commented 3 years ago

So that:

Latest error:

$ cd builds
$ $ gcloud builds submit ..
...
Step #4: i  functions: updating Node.js 14 (Beta) function userInfoShadow_2(europe-west6)...
Step #4: ⚠  functions: failed to update function userInfoShadow_2
Step #4: HTTP Error: 403, Missing necessary permission iam.serviceAccounts.actAs for $MEMBER on the service account groundlevel-160221@appspot.gserviceaccount.com.
Step #4: Grant the role 'roles/iam.serviceAccountUser' to $MEMBER on the service account groundlevel-160221@appspot.gserviceaccount.com.
Step #4: You can do that by running 'gcloud iam service-accounts add-iam-policy-binding groundlevel-160221@appspot.gserviceaccount.com --member=$MEMBER --role=roles/iam.serviceAccountUser'.
Step #4: In case the member is a service account please use the prefix 'serviceAccount:' instead of 'user:'.
Step #4: If this is a cross-project service account usage. Ask a project owner to grant you the iam.serviceAccountUser role on the service account and/or set the iam.disableCrossProjectServiceAccountUsage org policy to NOT ENFORCED on the service account project. Please visit https://cloud.google.com/functions/docs/troubleshooting for in-depth troubleshooting documentation.
akauppi commented 3 years ago

Triggers can be made from the CLI: https://cloud.google.com/build/docs/automating-builds/create-manage-triggers

akauppi commented 3 years ago

Changing the spec in the way that:

We cannot prevent direct pushes to a branch. Cloud Build / GitHub integration doesn't allow that.

Related: #50

akauppi commented 3 years ago
akauppi commented 3 years ago

CI now done enough (see ci/README).