Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit b79ca8e

Browse files
committed
Fix: Adjustments to checking for container start
1 parent d3178ae commit b79ca8e

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ jobs:
3939
run: |
4040
bun build:docker
4141
42-
- name: Start docker container
42+
- name: Start Docker container and check uptime
4343
run: |
4444
docker run --name dockstatapi --rm -d dockstatapi:local
45-
sleep 10
46-
if [[ $(docker container ls | grep "Up" | wc -l) -gt 0 ]]; then docker kill dockstatapi && exit 0; else; exit 1; fi
45+
sleep 30
46+
if docker ps --filter "name=dockstatapi" --filter "status=running" | grep dockstatapi; then
47+
docker kill dockstatapi
48+
exit 0
49+
else
50+
exit 1
51+
fi
4752
4853
release:
4954
name: Build and Push Docker Image on Release

0 commit comments

Comments
 (0)