Skip to content

Commit

Permalink
add backend path to deploy.yml to trigger only on changes in the back…
Browse files Browse the repository at this point in the history
…end directory
  • Loading branch information
cankurttekin committed Nov 19, 2024
1 parent df81090 commit 904a8de
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
paths:
- 'backend/**' # Trigger only on changes in the backend directory

jobs:
deploy:
Expand All @@ -25,14 +27,6 @@ jobs:
chmod 600 ~/.ssh/id_rsa
echo "SSH Key has been set up successfully"
# Debug Secrets
- name: Debug Secrets
run: |
echo "APP_URL=${{ secrets.APP_URL }}"
echo "EC2_USER=${{ secrets.EC2_USER }}"
echo "EC2_HOST=${{ secrets.EC2_HOST }}"
echo "AWS_DEFAULT_REGION=${{ secrets.AWS_DEFAULT_REGION }}"
# Copy backend files to EC2
- name: Deploy Application to EC2
env:
Expand Down

0 comments on commit 904a8de

Please sign in to comment.