Merge pull request #390 from shreyas1434shinde/notification #411
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deployment on the Tekdi Frontend Server | |
on: | |
push: | |
branches: | |
- release-1.0.0 | |
jobs: | |
TEKDI-QA-DEPLOYMENT: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Deploy Stack | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST_NAME_TEKDI }} | |
username: ${{ secrets.USERNAME_TEKDI }} | |
key: ${{ secrets.EC2_SSH_KEY_TEKDI }} | |
port: ${{ secrets.PORT_TEKDI }} | |
script: | | |
cd ${{ secrets.TARGET_DIR_TEKDI }} | |
if [ -f .env ]; then | |
rm .env | |
fi | |
echo "${{ secrets.QA_ENV }}" > .env | |
ls -ltra | |
./deploy.sh |