Artifact publishing¶
After your build pushes an installable to the artifact registry, register it with the marketplace. Registration records the pushed artifact against your product so it can move through review and into a release. It is the step a build pipeline runs at the end of a publish job.
The fgai artifacts group carries one command:
Command |
Request |
|---|---|
|
|
Registering a pushed artifact¶
fgai artifacts publish --body '{
"artifactRef": "<registry>/<namespace>/<product>:1.4.0",
"artifactDigest": "sha256:<manifest digest>",
"mediaType": "application/vnd.fgai.bazaar.applet.android+apk",
"offerSlug": "<product slug>",
"semverTag": "1.4.0"
}'
Field |
Required |
Meaning |
|---|---|---|
|
yes |
The full reference of the artifact you pushed, including its tag |
|
yes |
The |
|
yes |
The product the artifact belongs to |
|
yes |
The semantic version, without a leading |
|
no |
The artifact’s media type |
A missing required field is refused with 400 validation_failed, and the response
names each missing field. A successful call answers 201 Created with the new
artifact’s id and its starting state:
{ "artifact_id": "4182", "state": "INGESTED" }
Who can register¶
The caller needs the publish permission on the named product in its own account. An interactive user and an access-key identity are both accepted. Each call registers a new artifact record, so do not retry a call that succeeded.
When the call comes from a trusted CI pipeline, the marketplace also records the pipeline’s build claims (repository, ref, commit and run) against the artifact. An artifact published from a workstation carries none.