Skip to content

Commit

Permalink
adding while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
gzukel committed Mar 26, 2024
1 parent fea5733 commit 29621b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/execute_advanced_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
while true; do
echo "get current status"
current_status=$(docker ps -q | grep $container_id)
echo "current status: ${current_status}"
if [ -z "$current_status" ]; then
echo "no current container get logs"
docker logs $container_id || echo "no logs"
Expand Down Expand Up @@ -83,6 +84,7 @@ jobs:
while true; do
echo "get current status"
current_status=$(docker ps -q | grep $container_id)
echo "current status: ${current_status}"
if [ -z "$current_status" ]; then
echo "no current container get logs"
docker logs $container_id || echo "no logs"
Expand Down Expand Up @@ -120,6 +122,7 @@ jobs:
while true; do
echo "get current status"
current_status=$(docker ps -q | grep $container_id)
echo "current status: ${current_status}"
if [ -z "$current_status" ]; then
echo "no current container get logs"
docker logs $container_id || echo "no logs"
Expand Down Expand Up @@ -157,6 +160,7 @@ jobs:
while true; do
echo "get current status"
current_status=$(docker ps -q | grep $container_id)
echo "current status: ${current_status}"
if [ -z "$current_status" ]; then
echo "no current container get logs"
docker logs $container_id || echo "no logs"
Expand Down

0 comments on commit 29621b0

Please sign in to comment.