Skip to content

Commit

Permalink
Update pratham-dev-server-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored Jan 16, 2025
1 parent b2465f6 commit 4cba683
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/pratham-dev-server-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
name: Deploy to dev-scp on Tekdi
name: Deploy to PRAHTAM-DEV on Tekdi

on:
workflow_dispatch:
push:
branches:
- release-1.0.0
jobs:
deploy:
deploy_DEV:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_NAME_PRATHAM_DEV }}
username: ${{ secrets.USERNAME_PRATHAM_DEV }}
key: ${{ secrets.EC2_SSH_KEY_PRATHAM_DEV }}
port: ${{ secrets.PORT_PRATHAM_DEV }}
host: ${{ secrets.DEV_HOST_NAME }}
username: ${{ secrets.DEV_USERNAME }}
key: ${{ secrets.DEV_EC2_SSH_KEY }}
port: ${{ secrets.DEV_PORT }}
script: |
cd ${{ secrets.TARGET_DIR_PRATHAM_DEV }}
cd ${{ secrets.DEV_TARGET_DIR }}
if [ -f .env ]; then
rm .env
fi
echo "${{ secrets.DEV_ENV }}" > .env
ls -ltra
./deploy.sh
./deploy.sh

0 comments on commit 4cba683

Please sign in to comment.