mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	ci: Add test for Docker healtcheck
This commit is contained in:
		
							parent
							
								
									5295d956a2
								
							
						
					
					
						commit
						e64234b462
					
				
							
								
								
									
										8
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							@ -51,9 +51,11 @@ jobs:
 | 
			
		||||
                cache-from: type=gha
 | 
			
		||||
                cache-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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user