Create automated build workflow
This commit is contained in:
		
							
								
								
									
										18
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
name: Build Docker Image
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: master
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    name: Push to GHCR
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: Login
 | 
			
		||||
      run: echo ${{ secrets.GHCR_PAT }} | docker login ghcr.io -u dchidell --password-stdin
 | 
			
		||||
    - name: Build
 | 
			
		||||
      run: docker build . --file Dockerfile --tag ghcr.io/dchidell/dnsmasq-web:latest
 | 
			
		||||
    - name: Push
 | 
			
		||||
      run: |
 | 
			
		||||
        docker push ghcr.io/dchidell/dnsmasq-web:latest
 | 
			
		||||
		Reference in New Issue
	
	Block a user