ci: push the image with crane (plain-HTTP in-cluster registry) #185

Merged
Sebi merged 1 commits from ci/image-push-crane into main 2026-12-05 17:18:01 +00:00
Owner

Why

The first main run after the image-job change failed at the push:

Error response from daemon: Get "https://gitea-http.gitea.svc.cluster.local:3000/v2/": http: server gave HTTP response to HTTPS client

On main and tags GITHUB_SERVER_URL is the in-cluster plain-HTTP address; the runner's Docker daemon only pushes over HTTPS there. Kaniko and tools/image -insecure handled HTTP, and PR runs never push, so the PR checks were green.

What

The image is still built with docker build; the push now runs with crane (Alpine package): docker save → crane push of the version tag, then crane tag for the channels (edge, beta, latest/stable/X.Y). --insecure only when the server URL is http://.

Tested locally

Same steps in node:24-alpine against a plain-HTTP registry:2 reached by a non-localhost name: version tag and edge pushed with the same digest, image config (entrypoint, nonroot) intact.

🤖 Generated with Claude Code

## Why The first main run after the image-job change failed at the push: ``` Error response from daemon: Get "https://gitea-http.gitea.svc.cluster.local:3000/v2/": http: server gave HTTP response to HTTPS client ``` On main and tags `GITHUB_SERVER_URL` is the in-cluster plain-HTTP address; the runner's Docker daemon only pushes over HTTPS there. Kaniko and `tools/image -insecure` handled HTTP, and PR runs never push, so the PR checks were green. ## What The image is still built with `docker build`; the push now runs with `crane` (Alpine package): `docker save` → `crane push` of the version tag, then `crane tag` for the channels (`edge`, `beta`, `latest`/`stable`/`X.Y`). `--insecure` only when the server URL is `http://`. ## Tested locally Same steps in `node:24-alpine` against a plain-HTTP `registry:2` reached by a non-localhost name: version tag and `edge` pushed with the same digest, image config (entrypoint, `nonroot`) intact. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sebi added 1 commit 2026-12-05 17:03:18 +00:00
ci: push the image with crane (plain-HTTP in-cluster registry)
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 1m5s
ci / test (pull_request) Successful in 7m15s
ci / build (pull_request) Successful in 2m25s
ci / image (pull_request) Successful in 28s
266dec50de
On main and tags GITHUB_SERVER_URL is http://gitea-http.gitea.svc...,
and the runner's Docker daemon refused to push there: "server gave HTTP
response to HTTPS client". crane pushes the saved image with --insecure
for http:// servers and tags the channels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sebi merged commit 18eb750ccb into main 2026-12-05 17:18:01 +00:00
Sebi deleted branch ci/image-push-crane 2026-12-05 17:18:04 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#185