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]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test_docker:
|
test_build_docker:
|
||||||
uses: ./.github/workflows/build-docker.yml
|
uses: ./.github/workflows/build-docker.yml
|
||||||
with:
|
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:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
source:
|
dockerfile:
|
||||||
description: 'The source directory to build'
|
description: 'The dockerfile to build'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: './Dockerfile'
|
||||||
|
context:
|
||||||
|
description: 'The build context'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: './'
|
default: './'
|
||||||
|
@ -17,10 +22,10 @@ jobs:
|
||||||
build-go:
|
build-go:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
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:
|
steps:
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
|
uses: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/checkout@main
|
||||||
- name: Build Docker Container
|
- name: Build Docker Container
|
||||||
run: |
|
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]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test_build:
|
test_build_go:
|
||||||
uses: ./.github/workflows/build-go.yml
|
uses: ./.github/workflows/build-go.yml
|
||||||
with:
|
with:
|
||||||
go-version: '1.23'
|
go-version: '1.23'
|
||||||
|
|
Loading…
Reference in a new issue