35 lines
		
	
	
		
			817 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			817 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
name: docker-monica-build main
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches:
 | 
						|
      - main
 | 
						|
  schedule:
 | 
						|
    - cron: "0 6 * * SUN"
 | 
						|
 | 
						|
jobs:
 | 
						|
  dockerfile_lint:
 | 
						|
    runs-on: k3s
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v4
 | 
						|
      - uses: hadolint/hadolint-action@v3.1.0
 | 
						|
        with:
 | 
						|
          dockerfile: Dockerfile
 | 
						|
 | 
						|
  build:
 | 
						|
    needs: dockerfile_lint
 | 
						|
    runs-on: k3s
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v4
 | 
						|
      - name: Kaniko build
 | 
						|
        # https://github.com/aevea/action-kaniko/releases
 | 
						|
        uses: aevea/action-kaniko@v0.12.0
 | 
						|
        with:
 | 
						|
          image: rogersik/monica
 | 
						|
          registry: gitea.sikorski.cloud
 | 
						|
          tag: '4.1'
 | 
						|
          # tag_with_latest: true # https://github.com/aevea/action-kaniko/issues/66
 | 
						|
          cache: true
 | 
						|
          username: rogersik
 | 
						|
          password: ${{ secrets.REGISTRY_PASSWORD }}
 |