From e2180086ed09b9a707dd9765a260ffdccfef8792 Mon Sep 17 00:00:00 2001 From: XyL1GaN4eG Date: Tue, 23 Jul 2024 15:59:25 +0300 Subject: [PATCH] Update deploy_user_service.yml --- .github/workflows/deploy_user_service.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/deploy_user_service.yml b/.github/workflows/deploy_user_service.yml index 56eb7a1..a5d4d03 100644 --- a/.github/workflows/deploy_user_service.yml +++ b/.github/workflows/deploy_user_service.yml @@ -35,15 +35,6 @@ jobs: echo "Build completed." EOF - - name: Deploy userService JAR to Server services - env: - SERVER_HOST: ${{ secrets.SERVER_HOST }} - SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }} - run: | - ssh -vvv -o StrictHostKeyChecking=no ${SERVER_USERNAME}@${SERVER_HOST} 'bash -s' << 'EOF' - sudo cp /home/xyl1gan4eg/myJavaProjects/weatherProject/userService/target/userService-0.0.1-SNAPSHOT.jar /opt/userService/ - EOF - - name: SSH into server and restart userService env: SERVER_HOST: ${{ secrets.SERVER_HOST }} @@ -52,6 +43,6 @@ jobs: ssh -vvv -o StrictHostKeyChecking=no ${SERVER_USERNAME}@${SERVER_HOST} 'bash -s' << 'EOF' echo "Restarting userService..." sudo systemctl stop user-service || true - sudo cp /opt/userService/userService-0.0.1-SNAPSHOT.jar /opt/userService/ +# sudo cp /opt/userService/userService-0.0.1-SNAPSHOT.jar /opt/userService/ sudo systemctl start user-service EOF \ No newline at end of file