jdaly13 / yellow-in-green

Trivia app
0 stars 0 forks source link

Update secrets and env variabbles build and Run #36

Closed jdaly13 closed 1 year ago

jdaly13 commented 1 year ago

For Cloud Build ./cloud_sql_proxy -instances=yellowingreen:us-central1:dev2=tcp:3306 & sleep 3 make yellowingreen:us-central1:dev2 an env variable

Also Integrate Secrets within cloudbuild file so this line in yaml file export DATABASE_URL=$_DATABASE_URL_LOCALHOST $_DATABASE_URL_LOCALHOST should referenced as a secret

USE this as a guide https://stackoverflow.com/questions/74891893/google-cloud-build-cloud-run-cloud-sql-prisma-migration/74891894?noredirect=1#comment135569389_74891894 https://cloud.google.com/sql/docs/mysql/connect-build https://cloud.google.com/build/docs/securing-builds/use-secrets