detect container runtime 4
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build Docker Image / build (pull_request) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build Docker Image / build (pull_request) Has been cancelled
				
			This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -35,8 +35,16 @@ jobs:
 | 
			
		||||
          
 | 
			
		||||
      - name: Build container image
 | 
			
		||||
        run: |
 | 
			
		||||
          podman build -t dailytrends:latest .
 | 
			
		||||
          if [ "$CONTAINER_CMD" = "podman" ]; then
 | 
			
		||||
            podman build -t dailytrends:latest .
 | 
			
		||||
          else
 | 
			
		||||
            sudo docker build -t dailytrends:latest .
 | 
			
		||||
          fi
 | 
			
		||||
          
 | 
			
		||||
      - name: Test container image
 | 
			
		||||
        run: |
 | 
			
		||||
          podman run --rm dailytrends:latest node --version
 | 
			
		||||
          if [ "$CONTAINER_CMD" = "podman" ]; then
 | 
			
		||||
            podman run --rm dailytrends:latest node --version
 | 
			
		||||
          else
 | 
			
		||||
            sudo docker run --rm dailytrends:latest node --version
 | 
			
		||||
          fi
 | 
			
		||||
		Reference in New Issue
	
	Block a user