Skip to content

Commit 15e299a

Browse files
committed
fix: Parameter Store에서 Firebase JSON 가져와서 Docker에 전달
1 parent 3f556c0 commit 15e299a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,18 @@ jobs:
135135
cd app
136136
docker build -t ifu-server:prod .
137137
138+
# Parameter Store에서 환경변수 가져오기
139+
echo "Fetching environment variables from Parameter Store..."
140+
FIREBASE_JSON=$(aws ssm get-parameter --name "/ifu/prod/FIREBASE_SERVICE_ACCOUNT_JSON" --with-decryption --query "Parameter.Value" --output text)
141+
138142
# 새 컨테이너 실행
139143
docker run -d \
140144
--name ifu-server \
141145
--restart unless-stopped \
142146
-p 8080:8080 \
143147
-e ENVIRONMENT=prod \
144148
-e TZ=Asia/Seoul \
149+
-e FIREBASE_SERVICE_ACCOUNT_JSON="$FIREBASE_JSON" \
145150
ifu-server:prod
146151
147152
docker image prune -f

0 commit comments

Comments
 (0)