diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index 960954f964..3009020031 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -36,7 +36,7 @@ jobs: file: ./backend/Dockerfile push: true build-args: 'target=client' - tags: ${{ steps.login-ecr.outputs.registry }}/codedang-admin-api:latest + tags: ${{ steps.login-ecr.outputs.registry }}/codedang-client-api:latest build-admin-api: name: Build admin-api image @@ -102,6 +102,9 @@ jobs: role-to-assume: ${{ secrets.AWS_ROLE_FOR_DEPLOY }} aws-region: ${{ env.AWS_REGION }} + - name: Trigger Amplify Frontend Build + run: curl -X POST -d {} "${{ secrets.AMPLIFY_WEBHOOK }}" + - uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.5.2 @@ -109,9 +112,9 @@ jobs: - name: Create Terraform variable file working-directory: ./infra/deploy run: | - echo $TFVARS >> terraform.tfvars - echo $OAUTH_GITHUB >> terraform.tfvars - echo $OAUTH_KAKAO >> terraform.tfvars + echo "$TFVARS" >> terraform.tfvars + echo "$OAUTH_GITHUB" >> terraform.tfvars + echo "$OAUTH_KAKAO" >> terraform.tfvars env: TFVARS: ${{ secrets.TFVARS }} OAUTH_GITHUB: ${{ secrets.OAUTH_GITHUB }} diff --git a/infra/modules/codedang-infra/db.tf b/infra/modules/codedang-infra/db.tf index 5e69623f0a..7916bfc615 100644 --- a/infra/modules/codedang-infra/db.tf +++ b/infra/modules/codedang-infra/db.tf @@ -59,7 +59,7 @@ resource "aws_subnet" "private_db3" { resource "aws_db_instance" "db-test" { db_name = "codedang_db" engine = "postgres" - engine_version = "14.7" + engine_version = "14.10" allocated_storage = 5 instance_class = "db.t4g.small"