mirror of
				https://github.com/b4tman/docker-squid.git
				synced 2025-11-04 11:08:29 +00:00 
			
		
		
		
	add GitHub Action
Docker Image CI via GitHub Actions
This commit is contained in:
		
							
								
								
									
										23
									
								
								.github/workflows/dockerimage.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/dockerimage.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
name: Docker Image CI
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
    - master
 | 
			
		||||
    - v3
 | 
			
		||||
    - v4
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches:
 | 
			
		||||
    - master
 | 
			
		||||
    - v3
 | 
			
		||||
    - v4
 | 
			
		||||
    
 | 
			
		||||
jobs:
 | 
			
		||||
  build: 
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - name: Build the Docker image
 | 
			
		||||
      run: docker build . --file Dockerfile --tag b4tman/squid:$(date +%s)
 | 
			
		||||
    - name: Test image
 | 
			
		||||
      run: docker-compose -f docker-compose.test.yml up sut
 | 
			
		||||
		Reference in New Issue
	
	Block a user