Skip to content

Commit

Permalink
OpenAIのトークンを環境変数に追加 (#61)
Browse files Browse the repository at this point in the history
Co-authored-by: manabeai <[email protected]>
  • Loading branch information
HackberryA3 and manabeai authored Nov 15, 2024
1 parent 9394944 commit 7a3bb32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .aws/task-definition-backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
{
"name": "DB_PASSWORD",
"value": "[DB_PASSWORD]"
}
},
{
"name": "OPENAI_KEY",
"value": "[OPENAI_KEY]"
}
],
"environmentFiles": [],
"mountPoints": [],
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cd-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
sed -i 's|\[DB_USERNAME\]|${{ secrets.DB_USERNAME }}|g' ${{ env.ECS_TASK_DEFINITION }}
sed -i 's|\[DB_PASSWORD\]|${{ secrets.DB_PASSWORD }}|g' ${{ env.ECS_TASK_DEFINITION }}
sed -i 's|\[DB_HOST\]|${{ secrets.DB_HOST }}|g' ${{ env.ECS_TASK_DEFINITION }}
sed -i 's|\[OPENAI_KEY\]|${{ secrets.OPENAI_KEY }}|g' ${{ env.ECS_TASK_DEFINITION }}
- name: タスク定義を更新
id: task-def
Expand Down

0 comments on commit 7a3bb32

Please sign in to comment.