akauppi / GroundLevel-firebase-es

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

CI: Using secrets from Cloud Build doesn't work #100

Closed akauppi closed 2 years ago

akauppi commented 2 years ago

Branch next.jun22

Steps:

$ cd ci
$ gcloud builds submit --config=cloudbuild.app.merged.yaml ..
...

Expected:

CI script should run, and have access to the secrets.

Actual:

BUILD FAILURE: Build step failure: build step 0 "node:18-alpine" failed: failed to access secret version for secret projects/664565958088/secrets/SENTRY_DSN/versions/latest: rpc error: code = NotFound desc = Secret [projects/664565958088/secrets/SENTRY_DSN] not found or has no versions.
akauppi commented 2 years ago

Adding SecretManager Viewer "at the project level" is likely to help (see link) - how to do that???

As a work-around, SENTRY_DNS is currently disabled.

akauppi commented 2 years ago

Ha. Misspelled as SENTRY_DNS in the console.