33 lines
		
	
	
		
			712 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			712 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: build
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches:
 | 
						|
      - main
 | 
						|
  schedule:
 | 
						|
    - cron: "0 6 * * SUN"
 | 
						|
 | 
						|
jobs:
 | 
						|
  Dockerfile lint:
 | 
						|
    runs-on: k3s
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v3
 | 
						|
      - uses: hadolint/hadolint-action@v3.1.0
 | 
						|
        with:
 | 
						|
          dockerfile: dockerfile/alpine
 | 
						|
 | 
						|
  build:
 | 
						|
    runs-on: k3s
 | 
						|
    needs: Dockerfile lint
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v3
 | 
						|
      - name: Kaniko build
 | 
						|
        uses: aevea/action-kaniko@master
 | 
						|
        with:
 | 
						|
          image: rogersik/devops-helper
 | 
						|
          registry: gitea.sikorski.cloud
 | 
						|
          tag: latest-alpine
 | 
						|
          cache: true
 | 
						|
          username: rogersik
 | 
						|
          password: ${{ secrets.REGISTRY_PASSWORD }}
 | 
						|
          build_file: dockerfile/alpine
 |