Skip to content

Commit aa80907

Browse files
authored
chore: main.yml 환경 변수 적용
1 parent e4db7e7 commit aa80907

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ jobs:
1919
# github repository에서 checkout
2020
- name: Check out source code
2121
uses: actions/checkout@v2
22+
# .env 파일 생성
23+
- name: Generate .env file
24+
run: |
25+
cat << EOF > ./server/.env
26+
JWT_SECRET=${{ secrets.JWT_SECRET }}
27+
HASH_ROUNDS=${{ secrets.HASH_ROUNDS }}
28+
PROTOCOL=${{ secrets.PROTOCOL }}
29+
HOST=${{ secrets.HOST }}
30+
DB_HOST=${{ secrets.DB_HOST }}
31+
DB_PORT=${{ secrets.DB_PORT }}
32+
DB_USERNAME=${{ secrets.DB_USERNAME }}
33+
DB_PASSWORD=${{ secrets.DB_PASSWORD }}
34+
DB_DATABASE=${{ secrets.DB_DATABASE }}
35+
EOF
36+
2237
# docker build 수행
2338
- name: Set up docker buildx
2439
id: buildx

0 commit comments

Comments
 (0)