Skip to content

Commit

Permalink
Update service-deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanchreek authored Sep 19, 2024
1 parent 76b301f commit ac98462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/service-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/mykey.pem ubuntu@$EC2_PUBLIC_IP "echo 'Connection successful!'"
- name: Ensure app directory exists
- name: Ensure app directory exists on EC2
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/mykey.pem ubuntu@$EC2_PUBLIC_IP "mkdir -p ~/app"
- name: Copy files to EC2
run: |
scp -o StrictHostKeyChecking=no -i ~/.ssh/mykey.pem -r * ubuntu@$EC2_PUBLIC_IP:/app
scp -o StrictHostKeyChecking=no -i ~/.ssh/mykey.pem -r * ubuntu@$EC2_PUBLIC_IP:~/app
- name: Deploy to EC2
run: |
Expand Down

0 comments on commit ac98462

Please sign in to comment.