use kaniko
This commit is contained in:
parent
e915ce1de3
commit
e3c2268ce7
3 changed files with 12 additions and 7 deletions
4
.github/workflows/build-docker-test.yml
vendored
4
.github/workflows/build-docker-test.yml
vendored
|
@ -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'
|
||||
|
|
13
.github/workflows/build-docker.yml
vendored
13
.github/workflows/build-docker.yml
vendored
|
@ -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 }}
|
||||
|
|
2
.github/workflows/build-go-test.yml
vendored
2
.github/workflows/build-go-test.yml
vendored
|
@ -1,6 +1,6 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
test_build:
|
||||
test_build_go:
|
||||
uses: ./.github/workflows/build-go.yml
|
||||
with:
|
||||
go-version: '1.23'
|
||||
|
|
Loading…
Reference in a new issue