Skip to content

Commit

Permalink
pass environment variables into containers
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Feb 26, 2024
1 parent 42febd8 commit 9f5c76f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion actions-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,33 @@ services:
build: .
environment:
AWS_ENDPOINT: dynamo:8000
AWS_DEFAULT_REGION: us-east-1
AWS_DISABLE_SSL: "true"
API_KEY_TABLE: ApiKey
WEBAUTHN_TABLE: WebAuthn
LAMBDA_ROLE: placeholder
AWS_REGION: $AWS_REGION
STG_AWS_ACCESS_KEY_ID: $STG_AWS_ACCESS_KEY_ID
STG_AWS_SECRET_ACCESS_KEY: $STG_AWS_SECRET_ACCESS_KEY
PRD_AWS_ACCESS_KEY_ID: $PRD_AWS_ACCESS_KEY_ID
PRD_AWS_SECRET_ACCESS_KEY: $PRD_AWS_SECRET_ACCESS_KEY
depends_on:
- dynamo

app:
build: .
working_dir: /src
environment:
AWS_REGION: ${AWS_REGION}
STG_AWS_ACCESS_KEY_ID: ${STG_AWS_ACCESS_KEY_ID}
STG_AWS_SECRET_ACCESS_KEY: ${STG_AWS_SECRET_ACCESS_KEY}
STG_LAMBDA_ROLE: ${STG_LAMBDA_ROLE}
STG_API_KEY_TABLE: ${STG_API_KEY_TABLE}
STG_WEBAUTHN_TABLE: ${STG_WEBAUTHN_TABLE}
PRD_AWS_ACCESS_KEY_ID: ${PRD_AWS_ACCESS_KEY_ID}
PRD_AWS_SECRET_ACCESS_KEY: ${PRD_AWS_SECRET_ACCESS_KEY}
PRD_LAMBDA_ROLE: ${PRD_LAMBDA_ROLE}
PRD_API_KEY_TABLE: ${PRD_API_KEY_TABLE}
PRD_WEBAUTHN_TABLE: ${PRD_WEBAUTHN_TABLE}

dynamo:
image: amazon/dynamodb-local
Expand Down

0 comments on commit 9f5c76f

Please sign in to comment.