Added kaniko (docker) build

This commit is contained in:
Rob 2024-07-09 22:07:21 +02:00
commit e5478f7287

View File

@ -0,0 +1,39 @@
name: Build docker image
on:
workflow_call:
inputs:
major-version:
required: true
type: number
minor-version:
required: true
type: number
revision-version:
required: true
type: number
image-name:
required: true
type: string
dockerfile:
type: string
default: Dockerfile
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: ${{ input.image-name }}
registry: ${{ vars.GLOBAL_REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
build_file: ${{ input.dockerfile }}
tag: ${{ input.major }}.${{ input.minor }}.${{ input.revision }}
cache: true