Skip to content

Commit

Permalink
fix: update env
Browse files Browse the repository at this point in the history
  • Loading branch information
ultralapse committed Jul 29, 2024
1 parent aa85b4c commit d17cd3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ jobs:
APP_NAME: ${{secrets.APP_NAME}}
DISCORD_PUBLIC_KEY: ${{ secrets.DISCORD_PUBLIC_KEY }}
ID: ${{secrets.ID}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}

- name: Deploy
run: cdk deploy --all --require-approval never
env:
APP_NAME: ${{secrets.APP_NAME}}
DISCORD_PUBLIC_KEY: ${{ secrets.DISCORD_PUBLIC_KEY }}
ID: ${{secrets.ID}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}

- name: Register & Delete Commands
run: cd commands && python3 register_commands.py
Expand Down
4 changes: 3 additions & 1 deletion attendance/attendance_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
function_name=construct_id,
environment= {
"DISCORD_PUBLIC_KEY" : os.getenv('DISCORD_PUBLIC_KEY'),
"ID" : os.getenv('ID')
"ID" : os.getenv('ID'),
"AWS_ID" : os.getenv('AWS_ACCESS_KEY_ID'),
"AWS_KEY" : os.getenv('AWS_SECRET_ACCESS_KEY'),
},
code=_lambda.DockerImageCode.from_image_asset(
directory="src"
Expand Down

0 comments on commit d17cd3c

Please sign in to comment.