-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy to Google Cloud #159
Conversation
* This script injects Google Cloud metadata (when available) into the environment. | ||
* Specifically, it injects the NEXTAUTH_URL and BASE_HTTP_ENDPOINT environment variables. | ||
* Run with `npm run with-gcp-metadata <command> <args>`. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very frustrating: the generated cloud run URL isn't known until after the deploy, and terraform blocks can't reference themselves
I think this is the cleanest solution, didn't see anything simpler online
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NEXAUTH_URL will be our domain, e.g. [staging.]compassiep.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, however ideally we can deploy without a domain/with the generated one with necessary
it'd be nice to be able to deploy to a new project or a personal account for testing
* This script injects Google Cloud metadata (when available) into the environment. | ||
* Specifically, it injects the NEXTAUTH_URL and BASE_HTTP_ENDPOINT environment variables. | ||
* Run with `npm run with-gcp-metadata <command> <args>`. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NEXAUTH_URL will be our domain, e.g. [staging.]compassiep.com
name = "DATABASE_URL" | ||
value_source { | ||
secret_key_ref { | ||
secret = google_secret_manager_secret.database_url.secret_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very cool!
Co-authored-by: Anup Mantri <[email protected]>
Co-authored-by: Anup Mantri <[email protected]>
What's missing: