Skip to content

Commit

Permalink
Update deploy_user_service.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 23, 2024
1 parent c93ed66 commit e218008
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/deploy_user_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit e218008

Please sign in to comment.