Skip to content

Commit c65780d

Browse files
authored
[infra] deploy.yml 수정 (#181)
* work * work
1 parent 3f4244e commit c65780d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828
branches:
2929
- main
3030
- develop
31+
workflow_dispatch:
3132

3233
# 권한 최소화/명시화
3334
permissions:

infra/terraform/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ echo "PASSWORD_1=${var.password}" >> /etc/environment
222222
echo "APP_1_DOMAIN=${var.morimori_domain}" >> /etc/environment
223223
echo "GITHUB_ACCESS_TOKEN_1_OWNER=${var.github_access_token_owner}" >> /etc/environment
224224
echo "GITHUB_ACCESS_TOKEN_1=${var.github_access_token}" >> /etc/environment
225+
echo "DB_HOST=${aws_db_instance.rds_postgres.endpoint}" >> /etc/environment
226+
echo "DB_PORT=5432" >> /etc/environment
227+
echo "DB_NAME=morimori" >> /etc/environment
228+
echo "DB_USERNAME=${var.db_username}" >> /etc/environment
229+
echo "DB_PASSWORD=${var.db_password}" >> /etc/environment
225230
source /etc/environment
226231
227232
# 도커 설치 및 실행/활성화

0 commit comments

Comments
 (0)