-
Notifications
You must be signed in to change notification settings - Fork 4
water-elevation-layer #592
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,16 @@ jobs: | |
| run: | | ||
| uv run alembic upgrade head | ||
|
|
||
| - name: Refresh materialized views on production database | ||
| env: | ||
| DB_DRIVER: "cloudsql" | ||
| CLOUD_SQL_INSTANCE_NAME: "${{ secrets.CLOUD_SQL_INSTANCE_NAME }}" | ||
| CLOUD_SQL_DATABASE: "${{ vars.CLOUD_SQL_DATABASE }}" | ||
| CLOUD_SQL_USER: "${{ secrets.CLOUD_SQL_USER }}" | ||
| CLOUD_SQL_IAM_AUTH: true | ||
| run: | | ||
| uv run python -m cli.cli refresh-pygeoapi-materialized-views | ||
|
Comment on lines
+50
to
+58
|
||
|
|
||
| - name: Ensure envsubst is available | ||
| run: | | ||
| if ! command -v envsubst >/dev/null 2>&1; then | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,16 @@ jobs: | |
| run: | | ||
| uv run alembic upgrade head | ||
|
|
||
| - name: Refresh materialized views on staging database | ||
| env: | ||
| DB_DRIVER: "cloudsql" | ||
| CLOUD_SQL_INSTANCE_NAME: "${{ secrets.CLOUD_SQL_INSTANCE_NAME }}" | ||
| CLOUD_SQL_DATABASE: "${{ vars.CLOUD_SQL_DATABASE }}" | ||
| CLOUD_SQL_USER: "${{ secrets.CLOUD_SQL_USER }}" | ||
| CLOUD_SQL_IAM_AUTH: true | ||
|
Comment on lines
+51
to
+56
|
||
| run: | | ||
| uv run python -m cli.cli refresh-pygeoapi-materialized-views | ||
|
|
||
| - name: Ensure envsubst is available | ||
| run: | | ||
| if ! command -v envsubst >/dev/null 2>&1; then | ||
|
|
||
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.
The env block for the DB connection is now duplicated across multiple steps (migrations + refresh). This increases drift risk if one step’s DB settings change later. Consider moving these shared DB env vars to a job-level
env:(or using a YAML anchor) and overriding only what differs per-step.