1 parent ea79b83 commit 776c425Copy full SHA for 776c425
1 file changed
.github/workflows/ci-cd.yml
@@ -74,6 +74,13 @@ jobs:
74
75
# --------------------------
76
# 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 배포
84
85
- name: Deploy to Cloud Run
86
run: |
@@ -84,7 +91,7 @@ jobs:
91
--allow-unauthenticated \
92
--port 8080 \
93
--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
88
95
89
96
- name: Deploy URL
90
97
0 commit comments