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 1d41cc9 commit 76b301f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/service-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main

env:
EC2_PUBLIC_IP: ai-spill.devops-days-upes.com # TODO replace to your EC2 instance public IP
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} # TODO define this secret in your GitHub repo settings
EC2_PUBLIC_IP: ai-spill.devops-days-upes.com # Replace with your EC2 instance public IP
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} # Define this secret in your GitHub repo settings

jobs:
Deploy:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- 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 76b301f

Please sign in to comment.