Skip to content

Commit

Permalink
Merge branch 'service-catalog' of https://github.com/RamziHaddad/proj…
Browse files Browse the repository at this point in the history
  • Loading branch information
DaoudAA committed Dec 4, 2024
2 parents 1d00bc1 + 8c140d4 commit 6ba1c59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/catalog-service-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,18 @@ jobs:
username: ${{ secrets.DEPLOYMENT_MACHINE_USER }}
password: ${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}
script: |
sleep 10
echo "Starting Java service..."
cd ~/service-catalog
nohup java -jar service-catalog.jar --server.port=8082 > service-catalog.log 2>&1 &
echo "Service deployed successfully!"
sleep 10
sleep 30
echo "Performing health check..."
curl -X 'GET' 'http://localhost:8082/products' -H 'accept: /' || (echo "Service health check failed!" && exit 1)
echo "Service deployed successfully!"
tail -n 50 ~/service-catalog/service-catalog.log

0 comments on commit 6ba1c59

Please sign in to comment.