use kaniko
Some checks failed
/ test_build_docker (push) Failing after 4s
/ test_build_go (push) Successful in 8s

This commit is contained in:
Kai Reichart 2024-11-27 14:28:20 +01:00
parent e915ce1de3
commit e3c2268ce7
3 changed files with 12 additions and 7 deletions

View file

@ -1,6 +1,6 @@
on: [push]
jobs:
test_docker:
test_build_docker:
uses: ./.github/workflows/build-docker.yml
with:
tag: 'test'
tag: 'forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/build/test:latest'

View file

@ -3,8 +3,13 @@ name: Build Docker Container
on:
workflow_call:
inputs:
source:
description: 'The source directory to build'
dockerfile:
description: 'The dockerfile to build'
required: false
type: string
default: './Dockerfile'
context:
description: 'The build context'
required: false
type: string
default: './'
@ -17,10 +22,10 @@ jobs:
build-go:
runs-on: docker
container:
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/pipeline-container/dind:27.4.0-rc2
image: gcr.io/kaniko-project/executor: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: |
docker build -t ${{ inputs.tag }} ${{ inputs.source }}
~/run_in_docker.sh ${{ inputs.dockerfile }} ${{ inputs.context }} ${{ inputs.tag }}

View file

@ -1,6 +1,6 @@
on: [push]
jobs:
test_build:
test_build_go:
uses: ./.github/workflows/build-go.yml
with:
go-version: '1.23'