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
Print Docker container log, if success or failure healthcheck
perfectra1n88875a33757a
diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.ymlindex 6b0c13f7ef..43049175b6 100644--- a/.github/workflows/main-docker.yml+++ b/.github/workflows/main-docker.yml@@ -65,10 +65,12 @@ jobs:tags: ${{ env.TEST_TAG }}cache-from: type=ghacache-to: type=gha,mode=max-- - name: Run the container in the background- run: docker run -d --rm --name trilium_local ${{ env.TEST_TAG }}-++ - name: Validate container run output+ run: |+ CONTAINER_ID=$(docker run -d --log-driver=journald --rm --name trilium_local ${{ env.TEST_TAG }})+ echo "Container ID: $CONTAINER_ID"+- name: Wait for the healthchecks to passuses: stringbean/docker-healthcheck-action@v1with:@@ -77,6 +79,12 @@ jobs:require-status: runningrequire-healthy: true+ # Print the entire log of the container thus far, regardless if the healthcheck failed or succeeded+ - name: Print entire log+ if: always()+ run: |+ journalctl -u docker CONTAINER_NAME=trilium_local --no-pager+build:name: Build Docker imagesruns-on: ubuntu-latest