Skip to content

Commit

Permalink
testing new worklow
Browse files Browse the repository at this point in the history
  • Loading branch information
nmr2701 committed May 31, 2024
1 parent daf933f commit 417e77e
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/productionworkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,18 @@ jobs:
- name: Run deployment
id: deployment
run: |
python ./se_ml_production/ML_backend_GKE/ML_GKE/ML_Service_GKE/main.py
python ./se_ml_production/ML_backend_GKE/ML_GKE/ML_Service_GKE/main.py | tee output.log
if grep -q "Deployment Test Complete with no errors" output.log; then
echo "Deployment Test Complete with no errors"
exit 0
else
echo "Deployment Test Complete with errors"
exit 1
fi
# Get the PID of the background process
APP_PID=$!
# Monitor the deployment log for the success message
while true; do
if grep -q "Deployment Test Complete with no errors" ./deployment.log; then
echo "Deployment Test Complete with no errors"
kill $APP_PID
exit 0
fi
sleep 1
done
# If the loop exits, it means the deployment failed
echo "Deployment Test Failed"
kill $APP_PID
exit 1

0 comments on commit 417e77e

Please sign in to comment.