Compare commits
No commits in common. "d3df14bdd0320722144eb44837dd238fcbde3140" and "dbe97297a137ba5d563cd0d5b57f6e2856da2f5f" have entirely different histories.
d3df14bdd0
...
dbe97297a1
38
job/build-docker-image.yml
Normal file
38
job/build-docker-image.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
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:
|
||||||
|
|
||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user