title: Google Cloud Run and JSON in ENV variables
body: <p>I am deploying a small Node.js app that uses <a href="https://github.com/lorenwest/node-config" rel="nofollow noreferrer"><code>config</code></a>. <code>NODE_CONFIG</code> is read and used to supersede any local configuration. This is handy when deploying a service with secrets because the configuration can be injected from the outside.</p>
  
  <p>When trying to achieve this with Google Cloud Run and the CLI, I am getting an escape error. Apparently only dictionaries are supported by the CLI.</p>
  
  <p>Is there a better way to pass <code>JSON</code> content through env variables?</p>
  
  <pre><code>gcloud run deploy pr-$PULL_REQUEST \
    --platform=managed \
    --revision-suffix=$revision \
    --region us-central1 \
    --set-env-vars="NODE_ENV=development,NODE_CONFIG='$json'" \
    --allow-unauthenticated \
    --image gcr.io/...
  </code></pre>