Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy Backend

on:
push:
branches:
- main

permissions:
id-token: write
contents: read

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ secrets.ECR_REPOSITORY_URI }}
run: |
# リポジトリ直下にDockerfileがある前提
docker build --platform linux/amd64 -t $ECR_REPOSITORY:latest .
docker push $ECR_REPOSITORY:latest

- name: Update ECS Service
run: |
aws ecs update-service --cluster ${{ secrets.ECS_CLUSTER_NAME }} \
--service ${{ secrets.ECS_SERVICE_NAME }} \
--force-new-deployment
4 changes: 3 additions & 1 deletion docs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ erDiagram
string llm_category "カテゴリ"
string llm_importance_level "重要度"
string llm_priority "優先度"
string llm_fix_difficulty "修正難易度"
boolean llm_is_abusive "危険かどうか"
Expand Down
Loading