From 76489296b385960c5eee1a6eadee87e04bfcdd50 Mon Sep 17 00:00:00 2001 From: "cnb.dQC5J6ohAGA" <8m0v8c12sZDrY2infddElF+cnb.dQC5J6ohAGA@noreply.cnb.cool> Date: Thu, 17 Sep 2026 10:01:55 +0800 Subject: [PATCH] fix(ci): give the kaniko image a lowercase name CNB passes the `image:` string straight to `docker pull`, and Docker rejects any uppercase character in a repository name, so `kaniko.Dockerfile` failed with `invalid reference format`. The value just has to be a lowercase name; the build still comes from `docker.build.dockerfile`. Ref: #16 --- .cnb.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.cnb.yml b/.cnb.yml index 3987c6e..54e4ea2 100644 --- a/.cnb.yml +++ b/.cnb.yml @@ -130,8 +130,9 @@ main: - kaniko/plugin.sh stages: - name: build & push - # 这里不必再写完整路径:CNB 会从同名文件所在目录起逐级向上找。 - image: kaniko.Dockerfile + # 名字必须全小写:CNB 拿这个字符串当镜像名去 `docker pull`, + # Docker 不接受仓库名里出现大写字符。 + image: kaniko settings: # 凭证走插件参数,别再单独跑 `docker login`:这个镜像是 kaniko 的 # debug 版,里面没有任何 docker CLI,写了也是 `docker: not found`。