访问构建属性,包括 Docker 标签,artefact 的名称后面必须跟/manifest.json?properties
例如:
curl -uadmin:pass https://artifacts.my-company.com/artifactory/api/storage/my-docker-dev/my-component/my-image-1.0.0-1498449060/manifest.json?properties
返回类似的东西
{
"properties" : {
"docker.label.com.my-company.repository.commit.full" : [ "4fb524c0cb2139b15074b348bddb1952fa68deb1" ],
"docker.label.com.my-company.repository.commit.short" : [ "4fb52" ],
"docker.manifest" : [ "develop-1.0.0-1498449060" ],
"docker.manifest.type" : [ "application/vnd.docker.distribution.manifest.v2+json" ],
"docker.repoName" : [ "my-component" ],
"sha256" : [ "0c8f855fbd7f6065972eec9a8ca7e48980f19sd3db07c47751bbe17043ddda4d" ]
},
"uri" : "https://artifacts.my-company.com/artifactory/api/storage/my-docker-dev/my-component/develop-1.0.0-1498449060/manifest.json"
}