mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	ci: Use healthcheck action
This commit is contained in:
		
							parent
							
								
									e64234b462
								
							
						
					
					
						commit
						9cf14cc3a8
					
				
							
								
								
									
										9
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							| @ -52,10 +52,15 @@ jobs: | ||||
|                 cache-to: type=gha,mode=max | ||||
| 
 | ||||
|             - name: Run the container in the background | ||||
|               run: docker run -d --rm ${{ env.TEST_TAG }} | ||||
|               run: docker run -d --rm --name trilium_local ${{ 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' | ||||
|               uses: stringbean/docker-healthcheck-action@v1 | ||||
|               with: | ||||
|                 container: trilium_local | ||||
|                 wait-time: 50 | ||||
|                 require-status: running | ||||
|                 require-healthy: true | ||||
| 
 | ||||
|     build_docker: | ||||
|         name: Build Docker images | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran