build/.github/workflows/build-docker.yml
Kai Reichart 8ce2c6eb24
Some checks failed
/ test_build_docker (push) Failing after 5s
/ test_build_go (push) Successful in 9s
use debug images
2024-11-27 14:29:08 +01:00

31 lines
823 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: gcr.io/kaniko-project/executor:debug
steps:
- name: Clone Repository
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
- name: Build Docker Container
run: |
~/run_in_docker.sh ${{ inputs.dockerfile }} ${{ inputs.context }} ${{ inputs.tag }}