File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3030 env :
3131 ENV_BASE64 : ${{ secrets.FASTAPI_ENV_BASE64 }}
3232
33+ - name : Decode Vision key
34+ run : |
35+ echo "$VISION_KEY_JSON_BASE64" | base64 -d > vision-key.json
36+ env :
37+ VISION_KEY_JSON_BASE64 : ${{ secrets.VISION_KEY_JSON_BASE64 }}
38+
3339 - name : Deploy to EC2
3440 env :
3541 EC2_SSH_KEY : ${{ secrets.EC2_SSH_KEY }}
4652 # .env 전송
4753 scp -i private_key.pem -o StrictHostKeyChecking=no .env $EC2_USERNAME@$EC2_HOST:/home/$EC2_USERNAME/fastapi-app/.env
4854
55+ # Vision key 전송
56+ scp -i private_key.pem -o StrictHostKeyChecking=no vision-key.json $EC2_USERNAME@$EC2_HOST:/home/$EC2_USERNAME/fastapi-app/vision-key.json
57+
4958 # 서버 설정 및 재시작
5059 ssh -i private_key.pem -o StrictHostKeyChecking=no $EC2_USERNAME@$EC2_HOST "
5160 set -e
You can’t perform that action at this time.
0 commit comments