build/.github/workflows/build-docker.yml
Kai Reichart f9fe1982da
Some checks failed
/ test_build_go (push) Successful in 8s
/ test_build_docker (push) Failing after 1s
kaniko
2024-11-27 14:33:48 +01:00

31 lines
871 B
YAML

name: Build Docker Container
on:
workflow_call:
inputs:
dockerfile:
description: 'The dockerfile to build'
required: false
type: string
default: './Dockerfile'
context:
description: 'The build context'
required: false
type: string
default: './'
tag:
description: 'The tag to apply to the built image'
required: true
type: string
jobs:
build-go:
runs-on: docker
container:
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/pipeline-container/kaniko:v1.23.2
steps:
- name: Clone Repository
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
- name: Build Docker Container
run: |
/kaniko/executor ${{ inputs.dockerfile }} ${{ inputs.context }} ${{ inputs.tag }}