Use public base image for ko publishing
This commit is contained in:
@@ -53,6 +53,7 @@ jobs:
|
|||||||
- name: Build and Push Image
|
- name: Build and Push Image
|
||||||
env:
|
env:
|
||||||
REGISTRY_HOST: ${{ vars.REGISTRY_HOST }}
|
REGISTRY_HOST: ${{ vars.REGISTRY_HOST }}
|
||||||
|
KO_DEFAULTBASEIMAGE: gcr.io/distroless/static-debian12:nonroot
|
||||||
run: |
|
run: |
|
||||||
export KO_DOCKER_REPO="${REGISTRY_HOST}/${GITHUB_REPOSITORY_OWNER}"
|
export KO_DOCKER_REPO="${REGISTRY_HOST}/${GITHUB_REPOSITORY_OWNER}"
|
||||||
ko build --base-import-paths --insecure-registry --sbom=none --tags "main,sha-${GITHUB_SHA}" .
|
ko build --base-import-paths --insecure-registry --sbom=none --tags "main,sha-${GITHUB_SHA}" .
|
||||||
|
|||||||
Reference in New Issue
Block a user