Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ jobs:

- name: EC2 배포
run: |

mkdir -p ~/.ssh
echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/eatsfine-ec2-key.pem
chmod 600 ~/.ssh/eatsfine-ec2-key.pem

ssh -o StrictHostKeyChecking=no \
-i <(echo "${{ secrets.EC2_SSH_KEY }}") \
${{ secrets.EC2_USERNAME }}@${{ secrets.LIVE_SERVER_IP }} << EOF
${{ secrets.EC2_USERNAME }}@${{ secrets.LIVE_SERVER_IP }} << 'EOF'

set -e
cd /home/ec2-user/deploy
Expand Down