mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
echo variables to check values
This commit is contained in:
parent
216f32709f
commit
7bc5c4e34d
4 changed files with 10 additions and 1 deletions
3
.github/workflows/_build_image.yml
vendored
3
.github/workflows/_build_image.yml
vendored
|
|
@ -78,6 +78,9 @@ jobs:
|
||||||
temp=$(eval echo "$line")
|
temp=$(eval echo "$line")
|
||||||
BUILD_ARGS="$BUILD_ARGS --build-arg $temp"
|
BUILD_ARGS="$BUILD_ARGS --build-arg $temp"
|
||||||
done <<< "${{ inputs.build_args }}"
|
done <<< "${{ inputs.build_args }}"
|
||||||
|
|
||||||
|
echo "dev db host: $DEV_DB_HOST"
|
||||||
|
echo "aws_key_id: $AWS_ACCESS_KEY_ID"
|
||||||
|
|
||||||
docker build \
|
docker build \
|
||||||
-f ${{ inputs.dockerfile_path }} \
|
-f ${{ inputs.dockerfile_path }} \
|
||||||
|
|
|
||||||
1
.github/workflows/deploy_terraform.yml
vendored
1
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -142,7 +142,6 @@ jobs:
|
||||||
build_context: .
|
build_context: .
|
||||||
build_args: |
|
build_args: |
|
||||||
JUNTE=best
|
JUNTE=best
|
||||||
DEV_DB_HOST=\$DEV_DB_HOST
|
|
||||||
secrets:
|
secrets:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@ ENV JUNTE=${JUNTE}
|
||||||
ARG DEV_DB_HOST
|
ARG DEV_DB_HOST
|
||||||
ENV DEV_DB_HOST=${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)
|
# Set working directory (Lambda task root)
|
||||||
WORKDIR /var/task
|
WORKDIR /var/task
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,10 @@ def handler(event: Mapping[str, Any], context: Any) -> None:
|
||||||
"hello DB host",
|
"hello DB host",
|
||||||
os.getenv("DEV_DB_HOST", "empty db"),
|
os.getenv("DEV_DB_HOST", "empty db"),
|
||||||
)
|
)
|
||||||
|
print(
|
||||||
|
"hello access key",
|
||||||
|
os.getenv("AWS_ACCESS_KEY_ID", "empty key"),
|
||||||
|
)
|
||||||
# uprn_lookup = UprnLookupS3(
|
# uprn_lookup = UprnLookupS3(
|
||||||
# bucket="", key=""
|
# bucket="", key=""
|
||||||
# ) # TODO: replace with postgres implementation
|
# ) # TODO: replace with postgres implementation
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue