get db host from secrets

This commit is contained in:
Daniel Roth 2026-02-05 16:19:58 +00:00
parent 10765ae0a4
commit 0fa9f8bd43
2 changed files with 6 additions and 1 deletions

View file

@ -141,6 +141,7 @@ jobs:
dockerfile_path: backend/condition/handler/Dockerfile
build_context: .
build_args: |
JUNTE=best
DEV_DB_HOST=${{ secrets.DEV_DB_HOST }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}

View file

@ -15,7 +15,11 @@ import os
def handler(event: Mapping[str, Any], context: Any) -> None:
print("hello world", os.getenv("DEV_DB_HOST", "empty"))
print(
"hello world",
os.getenv("DEV_DB_HOST", "empty db"),
os.getenv("JUNTE", "empty junte"),
)
# uprn_lookup = UprnLookupS3(
# bucket="", key=""
# ) # TODO: replace with postgres implementation