mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
* create a separate Dockerfile for httphandler Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com> * add Dockerfile for cli, edit README Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com> * modify gh action to use new cli Dockerfile Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com> --------- Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: build-image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
CLIENT:
|
|
required: false
|
|
type: string
|
|
default: "test"
|
|
IMAGE_TAG:
|
|
required: true
|
|
type: string
|
|
CO_SIGN:
|
|
type: boolean
|
|
required: false
|
|
default: false
|
|
PLATFORMS:
|
|
type: boolean
|
|
required: false
|
|
default: false
|
|
jobs:
|
|
build-http-image:
|
|
permissions:
|
|
id-token: write
|
|
packages: write
|
|
contents: read
|
|
pull-requests: read
|
|
uses: kubescape/workflows/.github/workflows/incluster-comp-pr-merged.yaml@main
|
|
with:
|
|
IMAGE_NAME: quay.io/${{ github.repository_owner }}/kubescape
|
|
IMAGE_TAG: ${{ inputs.IMAGE_TAG }}
|
|
COMPONENT_NAME: kubescape
|
|
CGO_ENABLED: 0
|
|
GO111MODULE: "on"
|
|
BUILD_PLATFORM: ${{ inputs.PLATFORMS && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
|
|
GO_VERSION: "1.20"
|
|
REQUIRED_TESTS: '[]'
|
|
COSIGN: ${{ inputs.CO_SIGN }}
|
|
HELM_E2E_TEST: false
|
|
FORCE: true
|
|
secrets: inherit
|