Packertemplate.json:push"name"和atlaspost-processor的"artifact"有什么区别?

Packer template.json: What's the difference between the push "name" and the atlas post-processor's "artifact"?

例如在the packer/atlas tutorial's template.json,我们在开头找到:

  "push": {
          "name": ""
        },

最后:

"post-processors": [
        [{
            "type": "vagrant",
            "keep_input_artifact": false
        },
        {
            "type": "atlas",
            "only": ["vmware-iso"],
            "artifact": "{{user `atlas_username`}}/{{user `atlas_name`}}",
            "artifact_type": "vagrant.box",
            "metadata": {
                "provider": "vmware_desktop",
                "version": "0.0.1"
            }
        },

官方documentation对于push/name配置选项说:

name (string) - Name of the build configuration in the build service. If this doesn't exist, it will be created (by default).

和 post processor/artifact:

artifact (string) - The shorthand tag for your artifact that maps to Atlas, i.e hashicorp/foobar for atlas.hashicorp.com/hashicorp/foobar.

首先,这两个解释我都看不懂。其次,如果使用 packer push?

,实际值不应该始终相同吗?

推送名称 是将显示在图集中 "Builds" 下的名称。

post-processor 工件 是 vagrant box 名称。它使用的名称,例如通过 vagrant box add。在图集网站上,单击上方菜单中的 "Vagrant" 时会列出这些框。

请注意,这些名称可以不同。