Skip to content

Commit 776c425

Browse files
committed
Fix : env 파일 주입 방식 변경
1 parent ea79b83 commit 776c425

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/ci-cd.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ jobs:
7474
7575
# --------------------------
7676
# 7) Cloud Run 배포
77+
# 7) .env 파일 생성
78+
# --------------------------
79+
- name: Create .env file
80+
run: printf "%s" "${{ secrets.ENV_FILE }}" > .env
81+
82+
# --------------------------
83+
# 8) Cloud Run 배포
7784
# --------------------------
7885
- name: Deploy to Cloud Run
7986
run: |
@@ -84,7 +91,7 @@ jobs:
8491
--allow-unauthenticated \
8592
--port 8080 \
8693
--add-cloudsql-instances ${{ secrets.GCP_PROJECT_ID }}:${{ env.REGION }}:tinybite \
87-
--set-env-vars="$(echo '${{ secrets.ENV_FILE }}' | tr '\n' ',' | sed 's/,$//')"
94+
--env-vars-file .env
8895
8996
- name: Deploy URL
9097
run: |

0 commit comments

Comments
 (0)