Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LUCETE012 authored Nov 13, 2024
1 parent e60e5e3 commit ad85e25
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
uses: actions/checkout@v3

- name: Set up SSH key
uses: webfactory/ssh-[email protected]
uses: appleboy/ssh-action@master
with:
ssh-private-key: ${{ secrets.FINUT_SSH_KEY }}

- name: Deploy to EC2
env:
EC2_HOST: ${{ secrets.FINUT_EC2_HOST }}
EC2_USER: ${{ secrets.FINUT_EC2_USER }}
run: |
ssh -o StrictHostKeyChecking=no $EC2_USER@$EC2_HOST 'cd app && ./deploy.sh'
key: ${{ secrets.FINUT_SSH_KEY }}
host: ${{ secrets.FINUT_EC2_HOST }}
username: ${{ secrets.FINUT_EC2_USER }}
script: |
cd app
./deploy.sh

0 comments on commit ad85e25

Please sign in to comment.