Force ko to publish to the origin registry
CI / test (push) Successful in 29s
CI / publish (push) Failing after 1m9s

This commit is contained in:
Joe Julian
2026-03-28 16:59:53 -07:00
parent 59b5e9e8dd
commit 86856abda2
+2 -2
View File
@@ -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}" .