2023-08-07 18:12:20 +02:00
|
|
|
name: build
|
2023-07-24 07:03:11 +02:00
|
|
|
on:
|
|
|
|
push:
|
2023-08-07 18:12:20 +02:00
|
|
|
branches:
|
2023-07-24 07:03:11 +02:00
|
|
|
- main
|
2023-08-07 18:12:20 +02:00
|
|
|
schedule:
|
|
|
|
- cron: "0 6 * * SUN"
|
2023-07-24 07:03:11 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-08-22 17:35:00 +02:00
|
|
|
Dockerfile lint:
|
|
|
|
runs-on: k3s
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: hadolint/hadolint-action@v3.1.0
|
|
|
|
with:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
2023-07-24 07:03:11 +02:00
|
|
|
build:
|
2023-08-22 17:35:00 +02:00
|
|
|
runs-on: k3s
|
|
|
|
needs: Dockerfile lint
|
2023-07-24 07:03:11 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-22 17:35:00 +02:00
|
|
|
- name: Kaniko build
|
|
|
|
uses: aevea/action-kaniko@master
|
|
|
|
with:
|
|
|
|
image: rogersik/devops-helper
|
|
|
|
registry: gitea.sikorski.cloud
|
|
|
|
tag: latest
|
|
|
|
cache: true
|
|
|
|
username: rogersik
|
|
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|