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

Commit 9cf14cc

Browse files
committed
ci: Use healthcheck action
1 parent e64234b commit 9cf14cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main-docker.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ jobs:
5252
cache-to: type=gha,mode=max
5353

5454
- name: Run the container in the background
55-
run: docker run -d --rm ${{ env.TEST_TAG }}
55+
run: docker run -d --rm --name trilium_local ${{ env.TEST_TAG }}
5656

5757
- name: Wait for the healthchecks to pass
58-
run: timeout 60s sh -c 'until docker ps | grep ${{ env.TEST_TAG }} | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
58+
uses: stringbean/docker-healthcheck-action@v1
59+
with:
60+
container: trilium_local
61+
wait-time: 50
62+
require-status: running
63+
require-healthy: true
5964

6065
build_docker:
6166
name: Build Docker images

0 commit comments

Comments
 (0)