81 lines
3.0 KiB
JSON
81 lines
3.0 KiB
JSON
{
|
|
"schemaVersion": 1,
|
|
"kind": "ci-artifact-catalog",
|
|
"purpose": "CI artifact catalog only. This file describes build inputs and image artifact naming; it does not describe runtime topology and does not replace deploy.json.",
|
|
"summaryContract": {
|
|
"requiredOnSuccess": [
|
|
"serviceId",
|
|
"sourceCommit",
|
|
"sourceRepo",
|
|
"dockerfile",
|
|
"imageRef",
|
|
"tag",
|
|
"digest",
|
|
"digestRef"
|
|
],
|
|
"fieldSemantics": {
|
|
"serviceId": "Stable UniDesk service id for the artifact.",
|
|
"sourceCommit": "Full 40-character Git commit used as the source and tag.",
|
|
"sourceRepo": "Git repository URL used to materialize the source.",
|
|
"dockerfile": "Repo-relative Dockerfile path used by CI.",
|
|
"imageRef": "Commit-tagged image reference pushed by CI.",
|
|
"tag": "Commit-pinned image tag; mutable tags such as latest are not valid.",
|
|
"digest": "Registry manifest digest for the pushed image.",
|
|
"digestRef": "Immutable image reference in repository@digest form."
|
|
}
|
|
},
|
|
"defaults": {
|
|
"producer": "D601 Tekton CI",
|
|
"registry": "127.0.0.1:5000",
|
|
"tag": "{{sourceCommit}}",
|
|
"mutableTagsAllowed": false,
|
|
"runtimeFieldsForbidden": [
|
|
"providerId",
|
|
"namespace",
|
|
"ports",
|
|
"composeService",
|
|
"kubernetesService",
|
|
"healthPath",
|
|
"replicas",
|
|
"env",
|
|
"volumes"
|
|
]
|
|
},
|
|
"artifacts": [
|
|
{
|
|
"serviceId": "baidu-netdisk",
|
|
"sourceRepo": "https://github.com/pikasTech/unidesk",
|
|
"dockerfile": "src/components/microservices/baidu-netdisk/Dockerfile",
|
|
"imageRepository": "unidesk/baidu-netdisk",
|
|
"imageRef": "127.0.0.1:5000/unidesk/baidu-netdisk:{{sourceCommit}}",
|
|
"digestRef": "127.0.0.1:5000/unidesk/baidu-netdisk@{{digest}}"
|
|
},
|
|
{
|
|
"serviceId": "decision-center",
|
|
"sourceRepo": "https://github.com/pikasTech/unidesk",
|
|
"dockerfile": "src/components/microservices/decision-center/Dockerfile",
|
|
"imageRepository": "unidesk/decision-center",
|
|
"imageRef": "127.0.0.1:5000/unidesk/decision-center:{{sourceCommit}}",
|
|
"digestRef": "127.0.0.1:5000/unidesk/decision-center@{{digest}}",
|
|
"publishCommand": "bun scripts/cli.ts ci publish-user-service --service decision-center --commit <full-sha>"
|
|
},
|
|
{
|
|
"serviceId": "frontend",
|
|
"sourceRepo": "https://github.com/pikasTech/unidesk",
|
|
"dockerfile": "src/components/frontend/Dockerfile",
|
|
"imageRepository": "unidesk/frontend",
|
|
"imageRef": "127.0.0.1:5000/unidesk/frontend:{{sourceCommit}}",
|
|
"digestRef": "127.0.0.1:5000/unidesk/frontend@{{digest}}"
|
|
},
|
|
{
|
|
"serviceId": "backend-core",
|
|
"sourceRepo": "https://github.com/pikasTech/unidesk",
|
|
"dockerfile": "src/components/backend-core/Dockerfile",
|
|
"imageRepository": "unidesk/backend-core",
|
|
"imageRef": "127.0.0.1:5000/unidesk/backend-core:{{sourceCommit}}",
|
|
"digestRef": "127.0.0.1:5000/unidesk/backend-core@{{digest}}",
|
|
"publishCommand": "bun scripts/cli.ts ci publish-backend-core --commit <full-sha>"
|
|
}
|
|
]
|
|
}
|