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
For Cloud Build
./cloud_sql_proxy -instances=yellowingreen:us-central1:dev2=tcp:3306 & sleep 3
make yellowingreen:us-central1:dev2 an env variableAlso Integrate Secrets within cloudbuild file so this line in yaml file
export DATABASE_URL=$_DATABASE_URL_LOCALHOST
$_DATABASE_URL_LOCALHOST should referenced as a secretUSE 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