Skip to content

Commit

Permalink
Update backend-ec2-deploy.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Haroun Alarabi <109032469+HarounAlarabi@users.noreply.github.com>
  • Loading branch information
HarounAlarabi authored Feb 6, 2024
1 parent f750ce6 commit f2cfe23
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/backend-ec2-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,12 @@ jobs:

- name: Build and Test
run: |
cd server
cd server
# - name: Remove Previous Deployment
# uses: easingthemes/ssh-deploy@main
# env:
# SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }}
# REMOTE_HOST: ${{ secrets.HOST_DNS }}
# REMOTE_USER: ${{ secrets.USERNAME }}
# REMOTE_PORT: 22
# REMOTE_SCRIPT: 'rm -rf /home/ubuntu/server'

- name: Deploy to EC2
uses: easingthemes/ssh-deploy@main
with:
local-path: server
env:
SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }}
REMOTE_HOST: ${{ secrets.HOST_DNS }}
REMOTE_USER: ${{ secrets.USERNAME }}



0 comments on commit f2cfe23

Please sign in to comment.