From 6d73c0e8774af84ecbd0491ca00c8f0aa6b3b5e6 Mon Sep 17 00:00:00 2001 From: Jaemin Choi <1dotolee@gmail.com> Date: Fri, 16 Feb 2024 01:30:15 +0900 Subject: [PATCH] fix(cd): resolve cd pipeline errors (#1393) * fix(cd): double quotes are not parsed * fix(infra): upgrade rds psql to current version * feat(cd): trigger amplify build * fix: fix wrong image push target * fix(cd): wrong run syntax * fix: wrong again :( --- .github/workflows/cd-prod.yml | 11 +++++++---- infra/modules/codedang-infra/db.tf | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) 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"