~sircmpwn/builds.sr.ht#209: Add support for third party artifacts

Since #64 looks like a hard problem. How about adding support for third party artifact storage since the current way to handle artifacts is to send it to somewhere in the buildscript yourself. This is currently used in the build.postmarketos.org system to send the build results to the repository.

To integrate it better with sr.ht it would be nice if it is possible to attach info about the artifacts to the build result using the API. For example:

PATCH /api/jobs/:id HTTP/1.1

{
    "artifacts": [
        {
            "description": "musl-armhf-1.1.21-r0.apk (x86_64)",
            "url": "https://build.postmarketos.org/repository/master/main/x86_64/musl-armhf-1.1.21-r0.apk",
            "size": 367258
        }
    ]
}

Which then can be rendered nicely in the build result page:

Status
REPORTED
Submitter
~martijnbraam
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

It's a bit quiet in here.