Skip to content

Merge pull request #289 from tekdi/merge-shiksha2 #9

Merge pull request #289 from tekdi/merge-shiksha2

Merge pull request #289 from tekdi/merge-shiksha2 #9

name: PROD-Deployment on Prahtam-AWS
on:
push:
branches:
- june15-pilot
jobs:
PROD-DEPLOYMENT:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_NAME_PRATHAM_AWS_PROD }}
username: ${{ secrets.USERNAME_PRATHAM_AWS }}
key: ${{ secrets.EC2_SSH_KEY_PRATHAM_AWS }}
port: ${{ secrets.PORT_PRATHAM_AWS }}
script: |
cd ${{ secrets.TARGET_DIR_PRATHAM_AWS_PROD }}
if [ -f .env ]; then
rm .env
fi
echo "${{ secrets.PROD_ENV }}" > .env
ls -ltra
./deploy.sh