2023-08-07 18:12:20 +02:00
|
|
|
name: build
|
|
|
|
|
2023-07-23 19:14:51 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
2023-08-07 18:10:38 +02:00
|
|
|
- main
|
2023-07-23 19:14:51 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-08-22 17:37:35 +02:00
|
|
|
Dockerfile lint:
|
|
|
|
runs-on: k3s
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: hadolint/hadolint-action@v3.1.0
|
|
|
|
with:
|
2023-11-12 17:44:32 +01:00
|
|
|
dockerfile: dockerfile/alpine
|
2023-08-22 17:37:35 +02:00
|
|
|
|
2023-07-23 19:14:51 +02:00
|
|
|
build:
|
2023-08-22 17:37:35 +02:00
|
|
|
runs-on: k3s
|
2023-11-12 12:40:49 +01:00
|
|
|
# needs: Dockerfile lint # lets process faster pull-requests
|
2023-07-23 19:14:51 +02:00
|
|
|
steps:
|
2023-07-23 19:33:00 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-08-22 17:37:35 +02:00
|
|
|
- name: Kaniko build
|
|
|
|
uses: aevea/action-kaniko@master
|
|
|
|
with:
|
|
|
|
image: rogersik/devops-helper
|
|
|
|
registry: gitea.sikorski.cloud
|
2023-11-12 17:28:39 +01:00
|
|
|
tag: dev-alpine
|
2023-08-22 17:37:35 +02:00
|
|
|
cache: true
|
|
|
|
username: rogersik
|
|
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
2023-11-12 17:44:32 +01:00
|
|
|
build_file: dockerfile/alpine
|