echo variables to check values

This commit is contained in:
Daniel Roth 2026-02-05 16:55:41 +00:00
parent 216f32709f
commit 7bc5c4e34d
4 changed files with 10 additions and 1 deletions

View file

@ -78,6 +78,9 @@ jobs:
temp=$(eval echo "$line")
BUILD_ARGS="$BUILD_ARGS --build-arg $temp"
done <<< "${{ inputs.build_args }}"
echo "dev db host: $DEV_DB_HOST"
echo "aws_key_id: $AWS_ACCESS_KEY_ID"
docker build \
-f ${{ inputs.dockerfile_path }} \

View file

@ -142,7 +142,6 @@ jobs:
build_context: .
build_args: |
JUNTE=best
DEV_DB_HOST=\$DEV_DB_HOST
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}

View file

@ -12,6 +12,9 @@ ENV JUNTE=${JUNTE}
ARG DEV_DB_HOST
ENV DEV_DB_HOST=${DEV_DB_HOST}
ARG AWS_ACCESS_KEY_ID
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
# Set working directory (Lambda task root)
WORKDIR /var/task

View file

@ -23,6 +23,10 @@ def handler(event: Mapping[str, Any], context: Any) -> None:
"hello DB host",
os.getenv("DEV_DB_HOST", "empty db"),
)
print(
"hello access key",
os.getenv("AWS_ACCESS_KEY_ID", "empty key"),
)
# uprn_lookup = UprnLookupS3(
# bucket="", key=""
# ) # TODO: replace with postgres implementation