Skip to content

Commit

Permalink
hotfix: ci-cd 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
l2yujw committed Nov 29, 2024
1 parent af6a923 commit c0c9238
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:

- name: .env 파일 작성
run: |
mkdir -p docker-compose
echo "DB_URL=${{ secrets.DB_URL }}" >> docker-compose/.env
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> docker-compose/.env
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> docker-compose/.env
Expand All @@ -93,6 +94,9 @@ jobs:
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> docker-compose/.env
echo "TAG=${{ github.sha }}" >> docker-compose/.env
- name: SSH key permissions
run: chmod 400 ${{ secrets.EC2_SSH_KEY }}

- name: .env 파일 EC2로 복사
run: |
scp -i ${{ secrets.EC2_SSH_KEY }} docker-compose/.env ubuntu@${{ secrets.EC2_PUBLIC_IP }}:~/docker-compose/.env
Expand Down

0 comments on commit c0c9238

Please sign in to comment.