From 0f2c5b1473e938ce04bff0a9fc2498203e709b92 Mon Sep 17 00:00:00 2001 From: Mandar-Beehyv Date: Wed, 8 Jan 2025 13:18:18 +0530 Subject: [PATCH] removed step 4-6 --- .../NMSReportingSuite-deployment.yaml | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/.github/workflows/NMSReportingSuite-deployment.yaml b/.github/workflows/NMSReportingSuite-deployment.yaml index a6019f24..19592e46 100644 --- a/.github/workflows/NMSReportingSuite-deployment.yaml +++ b/.github/workflows/NMSReportingSuite-deployment.yaml @@ -23,42 +23,3 @@ jobs: - name: Build with Maven run: mvn clean install -f NMSReportingSuite/pom.xml - # Step 4: Shutdown Tomcat if it is started - - name: Shutdown Tomcat if it is up - uses: appleboy/ssh-action@v0.1.6 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.STAGING_USER }} - password: ${{ secrets.STAGING_PASSWORD }} - script: | - if pgrep -f "org.apache.catalina.startup.Bootstrap" > /dev/null; then - echo "Tomcat is running. Shutting it down..." - sh /usr/local/tomcat/apache-tomcat-7.0.108/bin/shutdown.sh - else - echo "Tomcat is not running." - fi - - # Step 5: Deploy to Staging Server - - name: Deploy to Staging - uses: appleboy/scp-action@v0.1.4 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.STAGING_USER }} - password: ${{ secrets.STAGING_PASSWORD }} - source: "NMSReportingSuite/target/*.war" - target: /usr/local/tomcat/apache-tomcat-7.0.108/webapps - - # Step 6: Restart Application (if needed) - - name: Restart Tomcat - uses: appleboy/ssh-action@v0.1.6 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.STAGING_USER }} - password: ${{ secrets.STAGING_PASSWORD }} - script: | - if ! pgrep -f "org.apache.catalina.startup.Bootstrap" > /dev/null; then - echo "Tomcat is not running. Starting it up..." - sh /usr/local/tomcat/apache-tomcat-7.0.108/bin/startup.sh - else - echo "Tomcat is already running." - fi