Skip to content

Commit

Permalink
Added dev deployment file
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD committed Jul 15, 2024
1 parent bb9c500 commit 19a54f0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/prathamscp-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to dev-scp on Tekdi
on:
push:
branches:
- shiksha-2.0
- release-1.0.0
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -11,10 +11,15 @@ jobs:
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_NAME_PRATHAM_TEKDI }}
username: ${{ secrets.USERNAME_PRATHAM_TEKDI }}
key: ${{ secrets.EC2_SSH_KEY_PRATHAM_TEKDI }}
port: ${{ secrets.PORT_PRATHAM_TEKDI }}
host: ${{ secrets.HOST_NAME_PRATHAM_DEV }}
username: ${{ secrets.USERNAME_PRATHAM_DEV }}
key: ${{ secrets.EC2_SSH_KEY_PRATHAM_DEV }}
port: ${{ secrets.PORT_PRATHAM_DEV }}
script: |
cd ${{ secrets.TARGET_DIR_PRATHAM_TEKDI }}
cd ${{ secrets.TARGET_DIR_PRATHAM_DEV }}
if [ -f .env ]; then
rm .env
fi
echo "${{ secrets.DEV_ENV }}" > .env
ls -ltra
./deploy.sh

0 comments on commit 19a54f0

Please sign in to comment.