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
|
KO_DEFAULTBASEIMAGE: gcr.io/distroless/static-debian12:nonroot
|
||||||
run: |
|
run: |
|
||||||
push_host="$(git remote get-url origin | sed -E 's#^[a-z]+://([^/]+)/.*#\1#')"
|
push_host="$(git remote get-url origin | sed -E 's#^[a-z]+://([^/]+)/.*#\1#')"
|
||||||
export KO_DOCKER_REPO="${push_host}/${GITHUB_REPOSITORY_OWNER}"
|
export KO_DOCKER_REPO="${push_host}/${GITHUB_REPOSITORY}"
|
||||||
ko build --base-import-paths --insecure-registry --sbom=none --tags "main,sha-${GITHUB_SHA}" .
|
ko build --bare --insecure-registry --sbom=none --tags "main,sha-${GITHUB_SHA}" .
|
||||||
|
|||||||
Reference in New Issue
Block a user