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
This commit is contained in:
cnb.dQC5J6ohAGA committed 2026-09-17 10:01:58 +08:00
1 parent 015bd5ada1
commit 76489296b3
1 file changed
+3 -2
+3 -2
View File
@@ -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`。