Skip to content

Commit

Permalink
fix(cd): resolve cd pipeline errors (#1393)
Browse files Browse the repository at this point in the history
* 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 :(
  • Loading branch information
dotoleeoak authored Feb 15, 2024
1 parent 7529b14 commit 6d73c0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -102,16 +102,19 @@ 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

- 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 }}
Expand Down
2 changes: 1 addition & 1 deletion infra/modules/codedang-infra/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 6d73c0e

Please sign in to comment.