Skip to content

Commit

Permalink
vjvjbjb
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakshithb1 committed May 27, 2024
1 parent 11c86dd commit eb70381
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,20 @@ jobs:
-e BRANCH=${{ env.BRANCH_NAME }} \
mosipdev/masterdata-loader:develop
- name: Check whether masterdata_loader has errors in Logs
run: |
if docker logs masterdata_loader | grep -qi "ERROR"; then
echo "Error found in masterdata_loader logs."
exit 1
else
echo "No errors found in masterdata_loader logs."
fi

- name: docker ps command
run: docker ps -a
- name: Print Logs of masterdata_loader
run: |
# Display masterdata_loader logs
docker logs -f masterdata_loader
- name: Check whether masterdata_loader has errors in Logs
run: |
if docker logs masterdata_loader | grep -q "ERROR\|error"; then
echo "Error found in masterdata_loader logs."
exit 1
else
echo "No errors found in masterdata_loader logs."
fi

0 comments on commit eb70381

Please sign in to comment.