yaml 文件中列表值中冒号的含义是什么,特别是:.gitlab-ci.yml 文件中阶段 build:image 的图像

what is the meaning of a colon in a list value in a yaml file, specifically :image of the stage build:image in a .gitlab-ci.yml file

列表值 build:image 只是像 build_image 这样的名称吗?或者它在 yaml 文件或 .gitlab-ci.yml 文件中有特殊用途吗?如果没有特殊用法,使用 name1:name2 而不是 name1_name2 的价值是什么?

:image 似乎没有放入变量中。当我 运行 通过 gitlab 管道时,输出是

Skipping Git submodules setup
Restoring cache
Downloading artifacts
Running before_script and script
$ echo image is $image
image
is

.gitlab-ci.yml

stages:
  - build:image
  - tag:image
  - deploy
build:
    stage: build:image
    script:
        - echo image is $image

我在 GitLab CI/CD Pipeline Configuration Reference

中没有看到类似的内容

您在哪里看到这个 .gitlab-ci.yml 文件?

我 运行 你提供的 .gitlab-ci.yml 它似乎工作正常,显然 GitLab CI 没有以任何特殊方式处理冒号 - 我不会期待它,因为文档中没有提到它。