Skip to content

Commit 27027e8

Browse files
authored
Update deploy.yml
1 parent dd9b46b commit 27027e8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,18 @@ jobs:
8888
username: ${{ github.actor }}
8989
password: ${{ secrets.GITHUB_TOKEN }}
9090
# 빌드 컨텍스트에 .env 생성 (비어있어도 실패하지 않게)
91-
- name: .env 파일 생성
91+
- name: .env 파일,key.json 생성
9292
env:
9393
DOT_ENV: ${{ secrets.DOT_ENV }}
94+
key:
95+
KEY_JSON:${secrets.KEY_JSON}
9496
run: |
9597
# .env가 없으면 빌드 캐시가 매번 깨질 수 있으므로 항상 생성
9698
mkdir -p "${{ env.BACKEND_DIR }}"
9799
printf "%s" "${DOT_ENV}" > "${{ env.BACKEND_DIR }}/.env"
100+
101+
mkdir -p"${{env.BACKEND_DIR}}/key"
102+
printf "%s" "${KEY_JSON}" > "${{ env.BACKEND_DIR }}/key/key.json"
98103
99104
- name: Docker Buildx 설치
100105
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)