Skip to content

Commit

Permalink
Create Pratham-Tekdi-Deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored Sep 20, 2024
1 parent a5712b5 commit f2fe4a1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/Pratham-Tekdi-Deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to Tekdi-QA-Server
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
-
name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_NAME_TEKDI_QA }}
username: ${{ secrets.USERNAME_TEKDI_QA }}
key: ${{ secrets.EC2_SSH_KEY_TEKDI_QA }}
port: ${{ secrets.PORT_TEKDI_QA }}
script: |
cd ${{ secrets.TARGET_DIR_TEKDI_QA }}
if [ -f .env ]; then
rm .env
fi
echo '${{ secrets.QA_ENV }}"' > .env
ls -ltra
./deploy.sh

0 comments on commit f2fe4a1

Please sign in to comment.