Force ko to publish to the origin registry
This commit is contained in:
@@ -55,5 +55,5 @@ jobs:
|
||||
KO_DEFAULTBASEIMAGE: gcr.io/distroless/static-debian12:nonroot
|
||||
run: |
|
||||
push_host="$(git remote get-url origin | sed -E 's#^[a-z]+://([^/]+)/.*#\1#')"
|
||||
export KO_DOCKER_REPO="${push_host}/${GITHUB_REPOSITORY_OWNER}"
|
||||
ko build --base-import-paths --insecure-registry --sbom=none --tags "main,sha-${GITHUB_SHA}" .
|
||||
export KO_DOCKER_REPO="${push_host}/${GITHUB_REPOSITORY}"
|
||||
ko build --bare --insecure-registry --sbom=none --tags "main,sha-${GITHUB_SHA}" .
|
||||
|
||||
Reference in New Issue
Block a user