Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
ci: Add test for Docker healtcheck
Elian Dorane64234b46262
diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.ymlindex 019a8da93b..7c23a98f62 100644--- a/.github/workflows/main-docker.yml+++ b/.github/workflows/main-docker.yml@@ -51,9 +51,11 @@ jobs:cache-from: type=ghacache-to: type=gha,mode=max- - name: Run the container- run: |- docker run --rm ${{ env.TEST_TAG }}+ - name: Run the container in the background+ run: docker run -d --rm ${{ env.TEST_TAG }}++ - name: Wait for the healthchecks to pass+ 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'build_docker:name: Build Docker images