Skip to content

Commit

Permalink
Create oblf-frontend-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored Aug 13, 2024
1 parent d99617f commit 2713365
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/oblf-frontend-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to OBLF Server
on:
push:
branches:
- lateMarkingForSelfAttendance
jobs:
OBLF_deploy:
#if: github.event.pull_request.merged == true
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

0 comments on commit 2713365

Please sign in to comment.