From 2713365f0929a566262c6d212f79aa3dff227db2 Mon Sep 17 00:00:00 2001 From: AbhilashKD <124042593+AbhilashKD@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:00:05 +0530 Subject: [PATCH] Create oblf-frontend-deployment.yaml --- .../workflows/oblf-frontend-deployment.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/oblf-frontend-deployment.yaml diff --git a/.github/workflows/oblf-frontend-deployment.yaml b/.github/workflows/oblf-frontend-deployment.yaml new file mode 100644 index 00000000..ed6deade --- /dev/null +++ b/.github/workflows/oblf-frontend-deployment.yaml @@ -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