From 4cba683043bcdd8b1e7973510689fb0ed253cf19 Mon Sep 17 00:00:00 2001 From: Abhilash Dubey <124042593+AbhilashKD@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:22:26 +0530 Subject: [PATCH] Update pratham-dev-server-deployment.yaml --- .../pratham-dev-server-deployment.yaml | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pratham-dev-server-deployment.yaml b/.github/workflows/pratham-dev-server-deployment.yaml index 5d5c57705..bc19e2ea5 100644 --- a/.github/workflows/pratham-dev-server-deployment.yaml +++ b/.github/workflows/pratham-dev-server-deployment.yaml @@ -1,23 +1,26 @@ -name: Deploy to dev-scp on Tekdi +name: Deploy to PRAHTAM-DEV on Tekdi + on: - workflow_dispatch: + push: + branches: + - release-1.0.0 jobs: - deploy: + deploy_DEV: runs-on: ubuntu-latest timeout-minutes: 15 steps: - name: Deploy Stack uses: appleboy/ssh-action@master with: - host: ${{ secrets.HOST_NAME_PRATHAM_DEV }} - username: ${{ secrets.USERNAME_PRATHAM_DEV }} - key: ${{ secrets.EC2_SSH_KEY_PRATHAM_DEV }} - port: ${{ secrets.PORT_PRATHAM_DEV }} + host: ${{ secrets.DEV_HOST_NAME }} + username: ${{ secrets.DEV_USERNAME }} + key: ${{ secrets.DEV_EC2_SSH_KEY }} + port: ${{ secrets.DEV_PORT }} script: | - cd ${{ secrets.TARGET_DIR_PRATHAM_DEV }} + cd ${{ secrets.DEV_TARGET_DIR }} if [ -f .env ]; then rm .env fi echo "${{ secrets.DEV_ENV }}" > .env ls -ltra - ./deploy.sh + ./deploy.sh