Merge pull request #318 from Rushikesh-Sonawane99/lateMarkingForSelfA… #149
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: PROD Deployment on the OBLF admin Server | |
on: | |
push: | |
branches: | |
- lateMarkingForSelfAttendance | |
jobs: | |
OBLF-ADMIN-PROD-DEPLOYMENT: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Deploy Stack | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST_NAME_OBLF }} | |
username: ${{ secrets.USERNAME_OBLF }} | |
key: ${{ secrets.EC2_SSH_KEY_OBLF }} | |
port: ${{ secrets.PORT_OBLF }} | |
script: | | |
cd ${{ secrets.TARGET_DIR_OBLF }} | |
if [ -f .env ]; then | |
rm .env | |
fi | |
echo "${{ secrets.OBLF_ENV }}" > .env | |
ls -ltra | |
./deploy.sh | |
#testing |