implement cli/infra update cicd

This commit is contained in:
Deeman
2025-10-12 21:00:41 +02:00
parent 790e802edd
commit 55bb84f0fa
18 changed files with 2052 additions and 60 deletions

View File

@@ -15,16 +15,22 @@ gateways:
prod:
connection:
# For more information on configuring the connection to your execution engine, visit:
# https://sqlmesh.readthedocs.io/en/stable/reference/configuration/#connection
# https://sqlmesh.readthedocs.io/en/stable/integrations/engines/duckdb/#connection-options
type: duckdb
database: materia_prod.db
database: ':memory:'
extensions:
- name: zipfs
- name: httpfs
- name: iceberg
init_script: |
CREATE SECRET IF NOT EXISTS r2_secret (
TYPE ICEBERG,
TOKEN '{{ env_var("CLOUDFLARE_API_TOKEN") }}'
);
ATTACH '{{ env_var("R2_WAREHOUSE_NAME", "materia") }}' AS catalog (
TYPE ICEBERG,
ENDPOINT '{{ env_var("ICEBERG_REST_URI") }}'
);
CREATE SCHEMA IF NOT EXISTS catalog.materia;
USE catalog.materia;
default_gateway: dev